Revision 8c9c9a54
.gitignore | ||
---|---|---|
1 | 1 |
# Android build products |
2 | 2 |
bin/ |
3 | 3 |
gen/ |
4 |
libs/ |
|
4 |
/libs/
|
|
5 | 5 |
obj/ |
6 | 6 |
res/ |
7 |
junit-report.xml |
|
7 | 8 |
|
8 | 9 |
# products of "android create project" or "android update project" |
9 | 10 |
build.xml |
test/AndroidManifest.xml | ||
---|---|---|
7 | 7 |
<uses-sdk android:minSdkVersion="7" /> |
8 | 8 |
|
9 | 9 |
<instrumentation |
10 |
android:name="android.test.InstrumentationTestRunner"
|
|
10 |
android:name="com.zutubi.android.junitreport.JUnitReportTestRunner"
|
|
11 | 11 |
android:targetPackage="info.guardianproject.trustedintents.test" /> |
12 | 12 |
|
13 | 13 |
<application |
test/ant.properties | ||
---|---|---|
1 |
# This file is used to override default values used by the Ant build system. |
|
2 |
# |
|
3 |
# This file must be checked into Version Control Systems, as it is |
|
4 |
# integral to the build system of your project. |
|
5 |
|
|
6 |
# This file is only used by the Ant script. |
|
7 |
|
|
8 |
# You can use this to override default values such as |
|
9 |
# 'source.dir' for the location of your java source folder and |
|
10 |
# 'out.dir' for the location of your output folder. |
|
11 |
|
|
12 |
# You can also use it define how the release builds are signed by declaring |
|
13 |
# the following properties: |
|
14 |
# 'key.store' for the location of your keystore and |
|
15 |
# 'key.alias' for the name of the key to use. |
|
16 |
# The password will be asked during the build when you use the 'release' target. |
|
17 |
|
|
18 |
tested.project.dir=.. |
|
19 |
test.runner=com.zutubi.android.junitreport.JUnitReportTestRunner |
test/custom_rules.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project name="test_custom_rules" default="fetch-test-report"> |
|
3 |
|
|
4 |
<target name="fetch-test-report"> |
|
5 |
<xpath |
|
6 |
expression="/manifest/@package" |
|
7 |
input="${tested.project.dir}/AndroidManifest.xml" |
|
8 |
output="tested.package" /> |
|
9 |
<echo>Downloading XML test report (/data/data/${tested.package}/files/junit-report.xml)…</echo> |
|
10 |
<mkdir dir="junitreports"/> |
|
11 |
<exec executable="${adb}" failonerror="true"> |
|
12 |
<arg line="${adb.device.arg}"/> |
|
13 |
<arg value="pull" /> |
|
14 |
<arg value="/data/data/${tested.package}/files/junit-report.xml" /> |
|
15 |
<arg value="junit-report.xml" /> |
|
16 |
</exec> |
|
17 |
</target> |
|
18 |
|
|
19 |
</project> |
test/libs/android-junit-report-1.5.8.README | ||
---|---|---|
1 |
|
|
2 |
Needed for Jenkins to get JUnit reports. |
|
3 |
|
|
4 |
* https://github.com/jsankey/android-junit-report |
|
5 |
* https://github.com/downloads/jsankey/android-junit-report/android-junit-report-1.5.8.jar |
Also available in: Unified diff