Closed TimotheeJeannin closed 10 years ago
Using maven, only InvalidContractsTest is run. It looks like maven only runs AndroidTestCase tests and no ProviderTestCase2 tests.
InvalidContractsTest
AndroidTestCase
ProviderTestCase2
Here is what maven gives when running a mvn install:
mvn install
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ ProviGen-tests --- [INFO] Building jar: D:\EN_COURS\ApplicationsAndroid\git-repositories\ProviGenMavenRepo\ProviGenTests\target\ProviGen-tests-1.6.0.jar [INFO] [INFO] --- android-maven-plugin:3.8.0:apk (default-apk) @ ProviGen-tests --- [INFO] Enabling debug build for apk. [INFO] D:\EN_COURS\ApplicationsAndroid\android-sdk-windows\build-tools\18.0.1\aapt.exe [package, -f, -M, D:\EN_COURS\ApplicationsAndroid\git-repositories\ProviGenMavenRepo\ProviGenTests\AndroidManifest.xml, -S, D:\EN_COURS\ApplicationsAndroid\git-repositories\ProviGenMavenRepo\ProviGenTests\res, --auto-add-overlay, -I, D:\EN_COURS\ApplicationsAndroid\android-sdk-windows\platforms\android-16\android.jar, -F, D:\EN_COURS\ApplicationsAndroid\git-repositories\ProviGenMavenRepo\ProviGenTests\target\ProviGen-tests-1.6.0.ap_, --debug-mode] [INFO] [INFO] --- android-maven-plugin:3.8.0:internal-pre-integration-test (default-internal-pre-integration-test) @ ProviGen-tests --- [INFO] Waiting for initial device list from the Android Debug Bridge [INFO] Found 1 devices connected with the Android Debug Bridge [INFO] android.device parameter not set, using all attached devices [INFO] Device 03042eda08e5ea29_LGE_Nexus5 found. [INFO] 03042eda08e5ea29_LGE_Nexus5 : Successfully installed D:\EN_COURS\ApplicationsAndroid\git-repositories\ProviGenMavenRepo\ProviGenTests\target\ProviGen-tests-1.6.0.apk to 03042eda08e5ea29_LGE_Nexus5 [INFO] [INFO] --- android-maven-plugin:3.8.0:internal-integration-test (default-internal-integration-test) @ ProviGen-tests --- [INFO] Found 1 devices connected with the Android Debug Bridge [INFO] android.device parameter not set, using all attached devices [INFO] Device 03042eda08e5ea29_LGE_Nexus5 found. [INFO] 03042eda08e5ea29_LGE_Nexus5 : Running instrumentation tests in com.tjeannin.provigen.test [INFO] 03042eda08e5ea29_LGE_Nexus5 : Run started: com.tjeannin.provigen.test, 4 tests: [INFO] 03042eda08e5ea29_LGE_Nexus5 : Start [1/4]: android.test.AndroidTestCase#testAndroidTestCaseSetupProperly [INFO] 03042eda08e5ea29_LGE_Nexus5 : End [1/4]: android.test.AndroidTestCase#testAndroidTestCaseSetupProperly [INFO] 03042eda08e5ea29_LGE_Nexus5 : Start [2/4]: android.test.LoaderTestCase#testAndroidTestCaseSetupProperly [INFO] 03042eda08e5ea29_LGE_Nexus5 : End [2/4]: android.test.LoaderTestCase#testAndroidTestCaseSetupProperly [INFO] 03042eda08e5ea29_LGE_Nexus5 : Start [3/4]: com.tjeannin.provigen.test.contract.InvalidContractsTest#testAndroidTestCaseSetupProperly [INFO] 03042eda08e5ea29_LGE_Nexus5 : End [3/4]: com.tjeannin.provigen.test.contract.InvalidContractsTest#testAndroidTestCaseSetupProperly [INFO] 03042eda08e5ea29_LGE_Nexus5 : Start [4/4]: com.tjeannin.provigen.test.contract.InvalidContractsTest#testInvalidContracts [INFO] 03042eda08e5ea29_LGE_Nexus5 : End [4/4]: com.tjeannin.provigen.test.contract.InvalidContractsTest#testInvalidContracts [INFO] 03042eda08e5ea29_LGE_Nexus5 : Run ended: 18 ms [INFO] Tests run: 4, Failures: 0, Errors: 0 [INFO] 03042eda08e5ea29_LGE_Nexus5 : Report file written to D:\EN_COURS\ApplicationsAndroid\git-repositories\ProviGenMavenRepo\ProviGenTests\target\surefire-reports\TEST-03042eda08e5ea29_LGE_Nexus5.xml
Using maven, only
InvalidContractsTest
is run. It looks like maven only runsAndroidTestCase
tests and noProviderTestCase2
tests.Here is what maven gives when running a
mvn install
: