Updated documentation on running local and instrumentation tests (#460)

This commit is contained in:
Martijn Brekhof 2017-09-28 20:54:52 +02:00 committed by Synced Synapse
parent 01f90c145d
commit d447789dc6
3 changed files with 14 additions and 4 deletions

View File

@ -29,6 +29,16 @@ Building
5. Gradle should be able to fetch all the other needed libraries.
Testing
-------
1. Make sure you are able to build Kore as described in the previous section.
2. To run the local tests see [README](https://github.com/xbmc/Kore/blob/master/app/src/test/README.md)
3. To run the instrumented tests see [README](https://github.com/xbmc/Kore/blob/master/app/src/androidTest/README.md)
We currently use [travis-ci](https://travis-ci.org/xbmc/Kore/) to automatically build
and run the local tests for each pull request.
Credits
-------

View File

@ -7,7 +7,7 @@ You can run the tests as follows:
### Android Studio
1. Select build variant "instrumentationTestDebug"
2. Set the (Project view)[https://developer.android.com/studio/projects/index.html] to Android
2. Set the [Project view](https://developer.android.com/studio/projects/index.html) to Android
3. Right-click on the directory "androidTest" and select "Run tests"
### Commandline

View File

@ -6,12 +6,12 @@ You can run the tests as follows:
### Android Studio
1. Select build variant "instrumentationTestDebug"
2. Set the (Project view)[https://developer.android.com/studio/projects/index.html] to Android
1. Select build variant "fullDebug"
2. Set the [Project view](https://developer.android.com/studio/projects/index.html) to Android
3. Right-click on the directory "test" and select "Run tests"
### Commandline
Run the following command from the top of the project:
./gradlew testInstrumentationTestDebugUnitTest
./gradlew testFullDebugUnitTest