[ http://jira.codehaus.org/browse/SUREFIRE-31?page=comments#action_73261 ] Jian Wu commented on SUREFIRE-31: ---------------------------------
Hi, I found that I can use the apache.snapshots repository at: <repository> <id>apache.snapshots</id> <url>http://people.apache.org/repo/m2-snapshot-repository</url> </repository> But, I encountered the following up problem: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------- --- [INFO] Building SureFire JUnit 4.0 Runner [INFO] task-segment: [compile] [INFO] ------------------------------------------------------------------------- --- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] Compiling 3 source files to C:\TrinityPrj\maven2\surefire-junit4\target\classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure C:\TrinityPrj\maven2\surefire-junit4\src\main\java\org\apache\maven\surefire\jun it\RunListenerInvocationHandler.java:[153,29] cannot find symbol symbol : constructor ReportEntry(java.lang.Object,java.lang.String,java.lang.St ring,java.lang.Throwable) location: class org.apache.maven.surefire.report.ReportEntry C:\TrinityPrj\maven2\surefire-junit4\src\main\java\org\apache\maven\surefire\jun it\JUnit4TestSet.java:[109,53] invoke(java.lang.Object,java.lang.Object...) in j ava.lang.reflect.Method cannot be applied to (java.lang.Object) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Thu Aug 24 14:56:48 PDT 2006 [INFO] Final Memory: 2M/11M [INFO] ------------------------------------------------------------------------ Any suggestion to work-around it would be really appreciated! Thanks, Jian > support junit 4.0 > ----------------- > > Key: SUREFIRE-31 > URL: http://jira.codehaus.org/browse/SUREFIRE-31 > Project: surefire > Issue Type: Improvement > Reporter: John Didion > Attachments: SUREFIRE-31-maven-surefire-plugin.patch, > SUREFIRE-31-surefire-trunk.patch, surefire-junit4.zip > > > I know this is a pretty sizable task. I just wanted to get it in the system > now that 4.0 has officially been released. Hopefully this will generate some > discussion about how 4.0 will be handled - mainly if it will require a > completely seperate implemenation of surefire (keeping the same API so it can > easily be used by the maven plugin), or if use of 4.0 will be made a > configurable option of the current surefire. > Here's some additional features I'd like to see: > 1. Ability to categorize tests. Unfortunately, 4.0 doesn't include an > @Category annotation, or make category a parameter of @Test. However, the > filtering mechanism provided by 4.0 is sufficent to support categories given > the presense of such an annotation. I recommend putting the @Category > annotation in a seperate module (surefire-annotations?) and build support for > it into surefire. Hopefully the junit guys could be convinced to incorporate > it in a later version. > 2. Similarly, support repeated tests via an @Repeated annotation. I'm not > sure how easy this would be to do external to junit. -- 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