Updated documentation on running local and instrumentation tests (#460)
This commit is contained in:
parent
01f90c145d
commit
d447789dc6
10
README.md
10
README.md
|
@ -29,6 +29,16 @@ Building
|
||||||
5. Gradle should be able to fetch all the other needed libraries.
|
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
|
Credits
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ You can run the tests as follows:
|
||||||
### Android Studio
|
### Android Studio
|
||||||
|
|
||||||
1. Select build variant "instrumentationTestDebug"
|
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"
|
3. Right-click on the directory "androidTest" and select "Run tests"
|
||||||
|
|
||||||
### Commandline
|
### Commandline
|
||||||
|
|
|
@ -6,12 +6,12 @@ You can run the tests as follows:
|
||||||
|
|
||||||
### Android Studio
|
### Android Studio
|
||||||
|
|
||||||
1. Select build variant "instrumentationTestDebug"
|
1. Select build variant "fullDebug"
|
||||||
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 "test" and select "Run tests"
|
3. Right-click on the directory "test" and select "Run tests"
|
||||||
|
|
||||||
### Commandline
|
### Commandline
|
||||||
|
|
||||||
Run the following command from the top of the project:
|
Run the following command from the top of the project:
|
||||||
|
|
||||||
./gradlew testInstrumentationTestDebugUnitTest
|
./gradlew testFullDebugUnitTest
|
Loading…
Reference in New Issue