[ 
https://jira.codehaus.org/browse/SUREFIRE-942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316223#comment-316223
 ] 

Romain manni-Bucau commented on SUREFIRE-942:
---------------------------------------------

worked for me, thanks
                
> surefire + testng suite doesn't do anything
> -------------------------------------------
>
>                 Key: SUREFIRE-942
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-942
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: TestNG support
>    Affects Versions: 2.12.4
>            Reporter: Romain manni-Bucau
>            Assignee: Kristian Rosenvold
>             Fix For: 2.13
>
>         Attachments: surefire-testng.zip
>
>
> In OpenEJB project we use surefire to run a testng suite (xml file) but no 
> test files are in src/test/java (all is in dependencies).
> When we run tests against surefire 2.12.4 nothing is done.
> Here the debug output:
> {code}
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ cdi-embedded ---
> [DEBUG] org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4:
> [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.9:compile
> [DEBUG]    org.apache.maven.surefire:surefire-booter:jar:2.12.4:compile
> [DEBUG]       org.apache.maven.surefire:surefire-api:jar:2.12.4:compile
> [DEBUG]    org.apache.maven.surefire:maven-surefire-common:jar:2.12.4:compile
> [DEBUG]       org.apache.commons:commons-lang3:jar:3.1:compile
> [DEBUG]       
> org.apache.maven.shared:maven-common-artifact-filters:jar:1.3:compile
> [DEBUG]    org.codehaus.plexus:plexus-utils:jar:3.0.8:compile
> [DEBUG]    org.apache.maven:maven-artifact:jar:2.0.9:compile
> [DEBUG]    org.apache.maven:maven-project:jar:2.0.9:compile
> [DEBUG]       org.apache.maven:maven-settings:jar:2.0.9:compile
> [DEBUG]       org.apache.maven:maven-profile:jar:2.0.9:compile
> [DEBUG]       org.apache.maven:maven-model:jar:2.0.9:compile
> [DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.9:compile
> [DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.9:compile
> [DEBUG]       
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
> [DEBUG]          junit:junit:jar:3.8.1:test (scope managed from compile)
> [DEBUG]    org.apache.maven:maven-core:jar:2.0.9:compile
> [DEBUG]       
> org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9:compile
> [DEBUG]       org.apache.maven.reporting:maven-reporting-api:jar:2.0.9:compile
> [DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0.9:compile
> [DEBUG]       org.apache.maven:maven-error-diagnostics:jar:2.0.9:compile
> [DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.0.9:compile
> [DEBUG]       org.apache.maven:maven-monitor:jar:2.0.9:compile
> [DEBUG]       classworlds:classworlds:jar:1.1:compile
> [DEBUG]    org.apache.maven:maven-toolchain:jar:2.0.9:compile
> [DEBUG]    
> org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1:compile
> [DEBUG] Created new class realm 
> plugin>org.apache.maven.plugins:maven-surefire-plugin:2.12.4
> [DEBUG] Importing foreign packages into class realm 
> plugin>org.apache.maven.plugins:maven-surefire-plugin:2.12.4
> [DEBUG]   Imported:  < project>org.apache.openejb:cdi-embedded:1.5.2-SNAPSHOT
> [DEBUG] Populating class realm 
> plugin>org.apache.maven.plugins:maven-surefire-plugin:2.12.4
> [DEBUG]   Included: org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4
> [DEBUG]   Included: org.apache.maven.surefire:surefire-booter:jar:2.12.4
> [DEBUG]   Included: org.apache.maven.surefire:surefire-api:jar:2.12.4
> [DEBUG]   Included: org.apache.maven.surefire:maven-surefire-common:jar:2.12.4
> [DEBUG]   Included: org.apache.commons:commons-lang3:jar:3.1
> [DEBUG]   Included: 
> org.apache.maven.shared:maven-common-artifact-filters:jar:1.3
> [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0.8
> [DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.9
> [DEBUG]   Included: 
> org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1
> [DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.9
> [DEBUG]   Excluded: 
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
> [DEBUG]   Excluded: junit:junit:jar:3.8.1
> [DEBUG]   Excluded: org.apache.maven:maven-core:jar:2.0.9
> [DEBUG]   Excluded: 
> org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.9
> [DEBUG]   Excluded: org.apache.maven:maven-monitor:jar:2.0.9
> [DEBUG]   Excluded: classworlds:classworlds:jar:1.1
> [DEBUG]   Excluded: org.apache.maven:maven-toolchain:jar:2.0.9
> [DEBUG] Configuring mojo 
> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test from plugin realm 
> ClassRealm[plugin>org.apache.maven.plugins:maven-surefire-plugin:2.12.4, 
> parent: sun.misc.Launcher$AppClassLoader@40affc70]
> [DEBUG] Configuring mojo 
> 'org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test' with basic 
> configurator -->
> [DEBUG]   (s) basedir = /opt/dev/openejb/openejb-trunk/tck/cdi-embedded
> [DEBUG]   (s) childDelegation = false
> [DEBUG]   (s) classesDirectory = 
> /opt/dev/openejb/openejb-trunk/tck/cdi-embedded/target/classes
> [DEBUG]   (s) disableXmlReport = false
> [DEBUG]   (s) enableAssertions = true
> [DEBUG]   (s) forkMode = always
> [DEBUG]   (s) junitArtifactName = junit:junit
> [DEBUG]   (s) localRepository =        id: local
>       url: file:///home/a185558/.m2/repository/
>    layout: none
> [DEBUG]   (f) parallelMavenExecution = false
> [DEBUG]   (s) perCoreThreadCount = true
> [DEBUG]   (s) pluginArtifactMap = 
> {org.apache.maven.plugins:maven-surefire-plugin=org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.12.4:,
>  
> org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.12.4:compile,
>  
> org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.12.4:compile,
>  
> org.apache.maven.surefire:maven-surefire-common=org.apache.maven.surefire:maven-surefire-common:jar:2.12.4:compile,
>  
> org.apache.commons:commons-lang3=org.apache.commons:commons-lang3:jar:3.1:compile,
>  
> org.apache.maven.shared:maven-common-artifact-filters=org.apache.maven.shared:maven-common-artifact-filters:jar:1.3:compile,
>  
> org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:3.0.8:compile,
>  
> org.apache.maven.reporting:maven-reporting-api=org.apache.maven.reporting:maven-reporting-api:jar:2.0.9:compile,
>  
> org.apache.maven.plugin-tools:maven-plugin-annotations=org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1:compile}
> [DEBUG]   (f) pluginDescriptor = Component Descriptor: role: 
> 'org.apache.maven.plugin.Mojo', implementation: 
> 'org.apache.maven.plugin.surefire.HelpMojo', role hint: 
> 'org.apache.maven.plugins:maven-surefire-plugin:2.12.4:help'
> role: 'org.apache.maven.plugin.Mojo', implementation: 
> 'org.apache.maven.plugin.surefire.SurefirePlugin', role hint: 
> 'org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test'
> ---
> [DEBUG]   (s) printSummary = true
> [DEBUG]   (s) projectArtifactMap = {junit:junit=junit:junit:jar:4.9:test, 
> org.hamcrest:hamcrest-core=org.hamcrest:hamcrest-core:jar:1.1:test, 
> org.apache.openejb:tck-common=org.apache.openejb:tck-common:jar:4.5.2-SNAPSHOT:compile,
>  
> org.jboss.test-harness:jboss-test-harness=org.jboss.test-harness:jboss-test-harness:jar:1.1.0-CR5:compile,
>  
> org.jboss.test-harness:jboss-test-harness-api=org.jboss.test-harness:jboss-test-harness-api:jar:1.1.0-CR5:compile,
>  
> org.apache.openejb:openejb-client=org.apache.openejb:openejb-client:jar:4.5.2-SNAPSHOT:compile,
>  
> org.apache.openejb:webdeployer=org.apache.openejb:webdeployer:jar:4.5.2-SNAPSHOT:compile,
>  
> org.apache.openejb:openejb-core=org.apache.openejb:openejb-core:jar:4.5.2-SNAPSHOT:compile,
>  
> org.apache.openejb:mbean-annotation-api=org.apache.openejb:mbean-annotation-api:jar:4.5.2-SNAPSHOT:compile,
>  
> org.apache.openejb:openejb-jpa-integration=org.apache.openejb:openejb-jpa-integration:jar:4.5.2-SNAPSHOT:compile,
>  
> org.apache.openejb:javaee-api=org.apache.openejb:javaee-api:jar:6.0-4:compile,
>  
> org.apache.commons:commons-lang3=org.apache.commons:commons-lang3:jar:3.1:compile,
>  
> org.apache.openejb:openejb-api=org.apache.openejb:openejb-api:jar:4.5.2-SNAPSHOT:compile,
>  
> org.apache.openejb:openejb-loader=org.apache.openejb:openejb-loader:jar:4.5.2-SNAPSHOT:compile,
>  
> org.apache.openejb:openejb-javaagent=org.apache.openejb:openejb-javaagent:jar:4.5.2-SNAPSHOT:compile,
>  
> org.apache.openejb:openejb-jee=org.apache.openejb:openejb-jee:jar:4.5.2-SNAPSHOT:compile,
>  com.sun.xml.bind:jaxb-impl=com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile, 
> commons-cli:commons-cli=commons-cli:commons-cli:jar:1.2:compile, 
> org.apache.activemq:activemq-ra=org.apache.activemq:activemq-ra:jar:5.7.0:compile,
>  
> org.apache.activemq:activemq-core=org.apache.activemq:activemq-core:jar:5.7.0:compile,
>  org.apache.activemq:kahadb=org.apache.activemq:kahadb:jar:5.7.0:compile, 
> org.apache.activemq.protobuf:activemq-protobuf=org.apache.activemq.protobuf:activemq-protobuf:jar:1.1:compile,
>  commons-net:commons-net=commons-net:commons-net:jar:3.1:compile, 
> org.apache.geronimo.components:geronimo-connector=org.apache.geronimo.components:geronimo-connector:jar:3.1.1:compile,
>  
> org.apache.geronimo.specs:geronimo-j2ee-connector_1.6_spec=org.apache.geronimo.specs:geronimo-j2ee-connector_1.6_spec:jar:1.0:compile,
>  
> org.apache.geronimo.components:geronimo-transaction=org.apache.geronimo.components:geronimo-transaction:jar:3.1.1:compile,
>  org.objectweb.howl:howl=org.objectweb.howl:howl:jar:1.0.1-1:compile, 
> org.apache.geronimo.javamail:geronimo-javamail_1.4_mail=org.apache.geronimo.javamail:geronimo-javamail_1.4_mail:jar:1.8.2:compile,
>  
> org.apache.xbean:xbean-asm-shaded=org.apache.xbean:xbean-asm-shaded:jar:3.12:compile,
>  
> org.apache.xbean:xbean-finder-shaded=org.apache.xbean:xbean-finder-shaded:jar:3.12:compile,
>  
> org.apache.xbean:xbean-reflect=org.apache.xbean:xbean-reflect:jar:3.12:compile,
>  
> org.apache.xbean:xbean-naming=org.apache.xbean:xbean-naming:jar:3.12:compile, 
> org.apache.xbean:xbean-bundleutils=org.apache.xbean:xbean-bundleutils:jar:3.12:compile,
>  org.hsqldb:hsqldb=org.hsqldb:hsqldb:jar:2.2.8:compile, 
> commons-dbcp:commons-dbcp=commons-dbcp:commons-dbcp:jar:1.4:compile, 
> commons-pool:commons-pool=commons-pool:commons-pool:jar:1.5.7:compile, 
> org.codehaus.swizzle:swizzle-stream=org.codehaus.swizzle:swizzle-stream:jar:1.6.1:compile,
>  
> commons-logging:commons-logging=commons-logging:commons-logging:jar:1.1.1:compile,
>  wsdl4j:wsdl4j=wsdl4j:wsdl4j:jar:1.6.2:compile, 
> org.quartz-scheduler:quartz=org.quartz-scheduler:quartz:jar:2.1.6:compile, 
> org.slf4j:slf4j-jdk14=org.slf4j:slf4j-jdk14:jar:1.6.1:test, 
> org.slf4j:slf4j-api=org.slf4j:slf4j-api:jar:1.7.2:compile, 
> org.apache.openwebbeans:openwebbeans-impl=org.apache.openwebbeans:openwebbeans-impl:jar:1.1.7:compile,
>  
> org.apache.openwebbeans:openwebbeans-spi=org.apache.openwebbeans:openwebbeans-spi:jar:1.1.7:compile,
>  
> org.apache.openwebbeans:openwebbeans-ejb=org.apache.openwebbeans:openwebbeans-ejb:jar:1.1.7:compile,
>  
> org.apache.openwebbeans:openwebbeans-ee=org.apache.openwebbeans:openwebbeans-ee:jar:1.1.7:compile,
>  
> org.apache.openwebbeans:openwebbeans-ee-common=org.apache.openwebbeans:openwebbeans-ee-common:jar:1.1.7:compile,
>  
> org.apache.openwebbeans:openwebbeans-web=org.apache.openwebbeans:openwebbeans-web:jar:1.1.7:compile,
>  org.javassist:javassist=org.javassist:javassist:jar:3.15.0-GA:compile, 
> org.apache.openejb.patch:openjpa-asm-shaded=org.apache.openejb.patch:openjpa-asm-shaded:jar:2.2.0:compile,
>  net.sourceforge.serp:serp=net.sourceforge.serp:serp:jar:1.13.1:compile, 
> commons-lang:commons-lang=commons-lang:commons-lang:jar:2.6:compile, 
> commons-collections:commons-collections=commons-collections:commons-collections:jar:3.2.1:compile,
>  org.apache.bval:bval-core=org.apache.bval:bval-core:jar:0.5:compile, 
> commons-beanutils:commons-beanutils-core=commons-beanutils:commons-beanutils-core:jar:1.8.3:compile,
>  org.apache.bval:bval-jsr303=org.apache.bval:bval-jsr303:jar:0.5:compile, 
> org.fusesource.jansi:jansi=org.fusesource.jansi:jansi:jar:1.8:compile, 
> org.jboss.jsr299.tck:jsr299-tck-impl=org.jboss.jsr299.tck:jsr299-tck-impl:jar:1.0.4.SP1:compile,
>  javax.enterprise:cdi-api=javax.enterprise:cdi-api:jar:1.0-SP4:compile, 
> org.jboss.jsr299.tck:jsr299-tck-api=org.jboss.jsr299.tck:jsr299-tck-api:jar:1.0.4.SP1:compile,
>  javax.servlet:servlet-api=javax.servlet:servlet-api:jar:2.5:compile, 
> javax.servlet.jsp:jsp-api=javax.servlet.jsp:jsp-api:jar:2.1:compile, 
> javax.transaction:jta=javax.transaction:jta:jar:1.1:compile, 
> javax.validation:validation-api=javax.validation:validation-api:jar:1.0.0.GA:compile,
>  
> org.jboss.test-audit:jboss-test-audit-api=org.jboss.test-audit:jboss-test-audit-api:jar:1.1.0.CR1:compile,
>  
> org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec=org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Beta1:compile,
>  javax.annotation:jsr250-api=javax.annotation:jsr250-api:jar:1.0:compile, 
> javax.jws:jsr181-api=javax.jws:jsr181-api:jar:1.0-MR1:compile, 
> javax.el:el-api=javax.el:el-api:jar:2.2:compile, 
> javax.faces:jsf-api=javax.faces:jsf-api:jar:1.2_13:compile, 
> javax.inject:javax.inject=javax.inject:javax.inject:jar:1:compile, 
> javax.persistence:persistence-api=javax.persistence:persistence-api:jar:1.0:compile,
>  
> commons-httpclient:commons-httpclient=commons-httpclient:commons-httpclient:jar:3.1:compile,
>  commons-codec:commons-codec=commons-codec:commons-codec:jar:1.4:compile, 
> net.sourceforge.htmlunit:htmlunit=net.sourceforge.htmlunit:htmlunit:jar:2.4:compile,
>  xalan:xalan=xalan:xalan:jar:2.7.1:compile, 
> xalan:serializer=xalan:serializer:jar:2.7.1:compile, 
> xml-apis:xml-apis=xml-apis:xml-apis:jar:1.3.04:test, 
> net.sourceforge.htmlunit:htmlunit-core-js=net.sourceforge.htmlunit:htmlunit-core-js:jar:2.4:compile,
>  
> net.sourceforge.nekohtml:nekohtml=net.sourceforge.nekohtml:nekohtml:jar:1.9.11:compile,
>  xerces:xercesImpl=xerces:xercesImpl:jar:2.9.1:compile, 
> net.sourceforge.cssparser:cssparser=net.sourceforge.cssparser:cssparser:jar:0.9.5:compile,
>  org.w3c.css:sac=org.w3c.css:sac:jar:1.3:compile, 
> commons-io:commons-io=commons-io:commons-io:jar:1.4:compile, 
> org.jboss.test-audit:jboss-test-audit-impl=org.jboss.test-audit:jboss-test-audit-impl:jar:1.1.0.CR1:compile,
>  org.testng:testng=org.testng:testng:jar:6.0.1:test, 
> org.beanshell:bsh=org.beanshell:bsh:jar:2.0b4:test, 
> com.beust:jcommander=com.beust:jcommander:jar:1.12:test, 
> org.yaml:snakeyaml=org.yaml:snakeyaml:jar:1.6:test}
> [DEBUG]   (s) redirectTestOutputToFile = false
> [DEBUG]   (s) remoteRepositories = [       id: apache-m2-snapshot
>       url: http://repository.apache.org/snapshots/
>    layout: default
> snapshots: [enabled => true, update => daily]
>  releases: [enabled => false, update => daily]
> ,        id: Codehaus Snapshots
>       url: http://snapshots.repository.codehaus.org/
>    layout: default
> snapshots: [enabled => true, update => daily]
>  releases: [enabled => false, update => daily]
> ,        id: central
>       url: http://repo.maven.apache.org/maven2
>    layout: default
> snapshots: [enabled => false, update => daily]
>  releases: [enabled => true, update => never]
> ]
> [DEBUG]   (s) reportFormat = brief
> [DEBUG]   (s) reportsDirectory = 
> /opt/dev/openejb/openejb-trunk/tck/cdi-embedded/target/surefire-reports
> [DEBUG]   (s) runOrder = filesystem
> [DEBUG]   (s) skip = false
> [DEBUG]   (s) skipTests = false
> [DEBUG]   (s) suiteXmlFiles = 
> [/opt/dev/openejb/openejb-trunk/tck/cdi-embedded/src/test/resources/passing.xml]
> [DEBUG]   (s) systemPropertyVariables = {}
> [DEBUG]   (s) testClassesDirectory = 
> /opt/dev/openejb/openejb-trunk/tck/cdi-embedded/target/test-classes
> [DEBUG]   (s) testFailureIgnore = false
> [DEBUG]   (s) testNGArtifactName = org.testng:testng
> [DEBUG]   (s) testSourceDirectory = 
> /opt/dev/openejb/openejb-trunk/tck/cdi-embedded/src/test/java
> [DEBUG]   (s) trimStackTrace = true
> [DEBUG]   (s) useFile = true
> [DEBUG]   (s) useManifestOnlyJar = true
> [DEBUG]   (s) useSystemClassLoader = true
> [DEBUG]   (s) useUnlimitedThreads = false
> [DEBUG]   (s) workingDirectory = 
> /opt/dev/openejb/openejb-trunk/tck/cdi-embedded
> [DEBUG]   (s) project = MavenProject: 
> org.apache.openejb:cdi-embedded:1.5.2-SNAPSHOT @ 
> /opt/dev/openejb/openejb-trunk/tck/cdi-embedded/pom.xml
> [DEBUG]   (s) session = org.apache.maven.execution.MavenSession@35a3f178
> [DEBUG] -- end configuration --
> [INFO] 
> {code}
> Here is the module (we fixed the surefire version to be able to get our 
> tests): 
> http://svn.apache.org/repos/asf/openejb/trunk/openejb/tck/cdi-embedded/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to