| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <project name="Adblock Plus Library Tests" default="help"> | 2 <project name="Adblock Plus Library Tests" default="help"> |
| 3 | 3 |
| 4 <!-- The local.properties file is created and updated by the 'android' tool. | 4 <!-- The local.properties file is created and updated by the 'android' tool. |
| 5 It contains the path to the SDK. It should *NOT* be checked into | 5 It contains the path to the SDK. It should *NOT* be checked into |
| 6 Version Control Systems. --> | 6 Version Control Systems. --> |
| 7 <property file="local.properties" /> | 7 <property file="local.properties" /> |
| 8 | 8 |
| 9 <!-- The ant.properties file can be created by you. It is only edited by the | 9 <!-- The ant.properties file can be created by you. It is only edited by the |
| 10 'android' tool to add properties to it. | 10 'android' tool to add properties to it. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 | 82 |
| 83 *********************** | 83 *********************** |
| 84 ****** IMPORTANT ****** | 84 ****** IMPORTANT ****** |
| 85 *********************** | 85 *********************** |
| 86 In all cases you must update the value of version-tag below to read 'cu stom' instead of an integer, | 86 In all cases you must update the value of version-tag below to read 'cu stom' instead of an integer, |
| 87 in order to avoid having your file be overridden by tools such as "andr oid update project" | 87 in order to avoid having your file be overridden by tools such as "andr oid update project" |
| 88 --> | 88 --> |
| 89 <!-- version-tag: 1 --> | 89 <!-- version-tag: 1 --> |
| 90 <import file="${sdk.dir}/tools/ant/build.xml" /> | 90 <import file="${sdk.dir}/tools/ant/build.xml" /> |
| 91 | 91 |
| 92 <!-- custom test target to perform specific test/method only --> | |
| 93 <target | |
| 94 name="testOnly" | |
| 95 depends="-test-project-check" | |
| 96 description="Runs a single test case, given with -DtestClass=package.pat h.to.Class"> | |
| 97 | |
| 98 <property name="test.runner" value="android.test.InstrumentationTestRunn er" /> | |
| 99 <property name="tested.project.absolute.dir" location="${tested.project. dir}" /> | |
| 100 | |
| 101 <!-- Application package of the tested project extracted from its manife st file --> | |
| 102 <xpath | |
| 103 input="${tested.project.absolute.dir}/AndroidManifest.xml" | |
| 104 expression="/manifest/@package" | |
| 105 output="tested.project.app.package" /> | |
| 106 | |
| 107 <run-tests-helper> | |
| 108 <extra-instrument-args> | |
| 109 <arg value="-e" /> | |
| 110 <arg value="class" /> | |
|
Felix Dahlke
2016/06/30 09:14:34
Nit: Seems like the indentation is off here - shou
anton
2016/06/30 09:18:03
since "-e" stands for "then will follow key and va
Felix Dahlke
2016/06/30 09:27:50
Oh right, I remember :)
| |
| 111 <arg value="${testClass}" /> | |
| 112 </extra-instrument-args> | |
| 113 </run-tests-helper> | |
| 114 </target> | |
| 115 | |
| 92 </project> | 116 </project> |
| OLD | NEW |