Added xml output for liblinphone junit tests
This commit is contained in:
parent
7c0e81e56e
commit
eaf126b8fa
7 changed files with 10 additions and 7 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -34,4 +34,5 @@ submodules/externals/build/cunit/CUnit/
|
|||
.idea
|
||||
build
|
||||
linphone-android.iml
|
||||
junit-report.xml
|
||||
linphone-junit-report.xml
|
||||
liblinphone-junit-report.xml
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="lib" path="libs/android-junit-report-1.5.8.jar"/>
|
||||
<classpathentry kind="output" path="bin/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -4,3 +4,4 @@ all:
|
|||
|
||||
run-all-tests: all
|
||||
ant test
|
||||
adb shell run-as org.linphone.tester cat /data/data/org.linphone.tester/files/junit-report.xml > liblinphone-junit-report.xml
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source.dir=src:../submodules/linphone/mediastreamer2/java/src:../submodules/linphone/java/j2se:../submodules/linphone/java/common:../submodules/linphone/java/impl
|
||||
test.runner=com.zutubi.android.junitreport.JUnitReportTestRunner
|
||||
|
|
BIN
liblinphone_tester/libs/android-junit-report-1.5.8.jar
Normal file
BIN
liblinphone_tester/libs/android-junit-report-1.5.8.jar
Normal file
Binary file not shown.
|
@ -1,13 +1,12 @@
|
|||
package org.linphone.tester;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import junit.framework.TestSuite;
|
||||
import android.os.Bundle;
|
||||
import android.test.InstrumentationTestRunner;
|
||||
|
||||
import com.zutubi.android.junitreport.JUnitReportTestRunner;
|
||||
|
||||
|
||||
public class TestRunner extends InstrumentationTestRunner {
|
||||
public class TestRunner extends JUnitReportTestRunner {
|
||||
String mSuite = null;
|
||||
String mTest = null;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ run-basic-tests:
|
|||
ant debug
|
||||
ant installd
|
||||
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
|
||||
adb shell run-as org.linphone cat /data/data/org.linphone/files/junit-report.xml > linphone-junit-report.xml
|
||||
|
||||
run-all-tests:
|
||||
$(SDK_PLATFORM_TOOLS_PATH)/adb uninstall org.linphone.test
|
||||
|
@ -17,4 +17,4 @@ run-all-tests:
|
|||
ant debug
|
||||
ant installd
|
||||
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
|
||||
adb shell run-as org.linphone cat /data/data/org.linphone/files/junit-report.xml > linphone-junit-report.xml
|
||||
|
|
Loading…
Reference in a new issue