Merge pull request #399 from owncloud/doc-ci-test

[docs] Add docs about running tests in CI
This commit is contained in:
Artur Neumann
2020-07-24 15:00:43 +05:45
committed by GitHub
+9 -4
View File
@@ -132,13 +132,18 @@ If you want to work on a specific issue
8. make a PR to ocis running the adjusted tests
To confirm that all tests (old and changed) run fine make a PR to ocis with your code changes and point drone to your branch in core to get the changed tests.
For that change this line in the `acceptance-tests` section
For that change this line in the `main` function
`'git clone -b master --depth=1 https://github.com/owncloud/core.git /srv/app/testrunner',`
apiTests(ctx, 'master', 'a3cac3dad60348fc962d1d8743b202bc5f79596b')
to clone your core branch e.g.
In place of master use your branch name. If you dont specify the commit ID, you will run the tests using the HEAD of the branch you specified.
`'git clone -b fixRevaIssue122 --depth=1 https://github.com/owncloud/core.git /srv/app/testrunner',`
apiTests(ctx, 'my-new-tests', '')
Also make sure to change the commit ID if you want to run tests on any other commit.
eg:
apiTests(ctx, 'my-new-tests', '7d468c05414b1dc745ca713d9deb443bc4e5f333')
9. merge PRs