Try to generate xml results for android junit tests

This commit is contained in:
Sylvain Berfini 2014-12-10 14:46:59 +01:00
parent 2206a11d7b
commit 7c0e81e56e
5 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View file

@ -34,3 +34,4 @@ submodules/externals/build/cunit/CUnit/
.idea
build
linphone-android.iml
junit-report.xml

View file

@ -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>

View file

@ -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

View file

@ -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

Binary file not shown.