hwldzh / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

Single test will not run on jenkins when passing -Dandroid.test.classes=your_class_name #297

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Invoke top-level maven targets on jenkins by specifying test class name
-X clean install -Dandroid.test.classes=yourclassname
2.No problem build the apk
3.Problem happens when start running test, output shows:

[INFO] Running tests for specified test classes/methods: [WorkFlowTest]
[INFO] Running instrumentation tests in com.izettle.android.test on 
4df1b7793d594fbd (avdName=null)
[INFO]   Run started: com.izettle.android.test, 0 tests:
[INFO]   Run failed: Instrumentation run failed due to 
'java.lang.RuntimeException'

What is the expected output?

It should start executing the test case that i specified before

What do you see instead?

I don't understand why 0 tests from output.

What version of maven-android-plugin are you using?

3.2.0

What are the complete output lines of "mvn -version" on your machine?

Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.6.0_33, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.4", arch: "x86_64", family: "mac"

Please provide any additional information below.

I took a look at the plugin source code, testRunStarted(String runName, int 
testCount) need testCount as one of parameter, but it's 0, where it comes from?

Original issue reported on code.google.com by jian...@gmail.com on 9 Aug 2012 at 1:22

GoogleCodeExporter commented 9 years ago
Is there a solution for this issue? I am facing the same problem  where, I give 
the test name under Build>Advanced> Property in Jenkins all the test cases in 
testng.xml is  executed. Is there a solution to remove this behavior? I really 
appreciate your help. Thanks.

Original comment by anu.joh...@gmail.com on 20 Mar 2013 at 5:55

GoogleCodeExporter commented 9 years ago
We are no longer using the issue tracking system on Google Code. Please refile 
this issue on https://github.com/jayway/maven-android-plugin/issues if you 
still have this problem with the latest release of the Android Maven Plugin

Original comment by mosa...@gmail.com on 19 May 2014 at 4:18