From d447789dc6ab71dc28fced436ddaccef6aef7770 Mon Sep 17 00:00:00 2001 From: Martijn Brekhof Date: Thu, 28 Sep 2017 20:54:52 +0200 Subject: [PATCH] Updated documentation on running local and instrumentation tests (#460) --- README.md | 10 ++++++++++ app/src/androidTest/README.md | 2 +- app/src/test/README.md | 6 +++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 495227f..6fbb28b 100644 --- a/README.md +++ b/README.md @@ -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 ------- diff --git a/app/src/androidTest/README.md b/app/src/androidTest/README.md index 9382fdf..a03fa54 100644 --- a/app/src/androidTest/README.md +++ b/app/src/androidTest/README.md @@ -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 diff --git a/app/src/test/README.md b/app/src/test/README.md index 6900238..1c9d45e 100644 --- a/app/src/test/README.md +++ b/app/src/test/README.md @@ -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 \ No newline at end of file + ./gradlew testFullDebugUnitTest \ No newline at end of file