[ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264179#action_264179 ]
Igor Petruk commented on SUREFIRE-729: -------------------------------------- No, there is no error at all. It says "No tests to run". To run test you have to add it to "test" option, but only without Spring runner. THIS is strange. Of course using "test" or disabling Spring runner is not an option. The problem I am facing started from migration from older surefire, spring, junit. When I put new versions such as JUnit 4.7, Surefire 2.8.1, surefure-juni47-2.8.1, Spring-3.0.5 everything brakes. In fact, these versions together simple don't see my tests, unless I use "test" option and remove Spring runner. Other combinations produce different errors, but I check for versions to be compatible. Spring documentation says Spring 3 is compatible with JUnit 4.5-4.7. Ok. Surfire documentation says that new Surefire is compatible to Junit 4.7 if provider is forced. Done. Well, I haven't found explicit compatability documentation between surefire and spring. We used to use Spring 2.5, Surefire 2.4, JUnit 4.4. But now I research Spring 3 migration possibility with possible parallel test run on JUnit 4.7. All tests fail no matter what I do. > Surefire 2.8, surefire-junit47, No tests to run > ----------------------------------------------- > > Key: SUREFIRE-729 > URL: http://jira.codehaus.org/browse/SUREFIRE-729 > Project: Maven Surefire > Issue Type: Bug > Reporter: Igor Petruk > Assignee: Kristian Rosenvold > > Concurrency config is parallel='none', perCoreThreadCount=true, > threadCount=2, useUnlimitedThreads=false > There are no tests to run. > Here is a part of my config > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <version>2.8</version> > <dependencies> > <dependency> > <groupId>org.apache.maven.surefire</groupId> > <artifactId>surefire-junit47</artifactId> > <version>2.8</version> > </dependency> > </dependencies> > <configuration> > <excludes> > <exclude>**/manual/**</exclude> > </excludes> > <argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine> > </configuration> > </plugin> > Adding "includes" of any form does not change anything. > But when I add > <includes><include>**/*</include></includes> > it fails trying to run an xml file in resources, interpreting it as class > com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test > class. Of course it fails -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira