Try to generate xml results for android junit tests
This commit is contained in:
parent
2206a11d7b
commit
7c0e81e56e
5 changed files with 8 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -34,3 +34,4 @@ submodules/externals/build/cunit/CUnit/
|
|||
.idea
|
||||
build
|
||||
linphone-android.iml
|
||||
junit-report.xml
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
|
||||
|
||||
<instrumentation
|
||||
android:name="android.test.InstrumentationTestRunner"
|
||||
android:name="com.zutubi.android.junitreport.JUnitReportTestRunner"
|
||||
android:targetPackage="org.linphone" />
|
||||
|
||||
<application
|
||||
|
@ -41,4 +41,4 @@
|
|||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
</manifest>
|
||||
|
|
|
@ -7,7 +7,8 @@ run-basic-tests:
|
|||
$(SDK_PATH)/android update test-project --path . -m ../
|
||||
ant debug
|
||||
ant installd
|
||||
adb shell am instrument -w -e size small org.linphone.test/android.test.InstrumentationTestRunner
|
||||
adb shell am instrument -w -e size small org.linphone.test/com.zutubi.android.junitreport.JUnitReportTestRunner
|
||||
adb shell run-as org.linphone cat /data/data/org.linphone/files/junit-report.xml > junit-report.xml
|
||||
|
||||
run-all-tests:
|
||||
$(SDK_PLATFORM_TOOLS_PATH)/adb uninstall org.linphone.test
|
||||
|
@ -15,4 +16,5 @@ run-all-tests:
|
|||
$(SDK_PATH)/android update test-project --path . -m ../
|
||||
ant debug
|
||||
ant installd
|
||||
adb shell am instrument -w -e size large org.linphone.test/android.test.InstrumentationTestRunner
|
||||
adb shell am instrument -w -e size large org.linphone.test/com.zutubi.android.junitreport.JUnitReportTestRunner
|
||||
adb shell run-as org.linphone cat /data/data/org.linphone/files/junit-report.xml > junit-report.xml
|
||||
|
|
|
@ -16,3 +16,4 @@
|
|||
# The password will be asked during the build when you use the 'release' target.
|
||||
|
||||
tested.project.dir=../
|
||||
test.runner=com.zutubi.android.junitreport.JUnitReportTestRunner
|
||||
|
|
BIN
tests/libs/android-junit-report-1.5.8.jar
Normal file
BIN
tests/libs/android-junit-report-1.5.8.jar
Normal file
Binary file not shown.
Loading…
Reference in a new issue