Yes, good catch there. I was just plain wrong when I wrote that ;). The issue there is again that Surefire "found" that test, and if it's a GWTTestCast test that Surefire finds, stuff goes bad.
By default Surefire picks up stuff that starts with or ends with "Test": http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html. So again, basically, I was wrong. Name it something Surefire won't latch on to, or configure Surefire to not pick up "TestSomething" tests. I am going to change the docs to say something like "something that does not start OR end with Test." Like SomethingGwtTst or . . . I can't think of a good one, but you get the idea (that trick DOES actually work, if you get the names right). On Nov 19, 3:06 pm, "Arthur Kalmenson" <[EMAIL PROTECTED]> wrote: > Hello everyone, > > As I was trying to figure out why gwt-maven isn't running my > GWTTestSuite and I came across a strange bug. It seems that when you > name your GWTTestCase "Test<name>" as the "Use GWTTestSuite padawan" > here > (http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plug...) > says to, it's still being run. I created a new test project with the > archetype and I renamed the GWTTestExampleA to TestExampleA. Here's my > maven run: > > [EMAIL PROTECTED]:~/work/gwt-example$ mvn test > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] Building gwt-maven-archetype-project > [INFO] task-segment: [test] > [INFO] > ------------------------------------------------------------------------ > [INFO] [resources:resources] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered > resources, i.e. build is platform dependent! > [INFO] Copying 0 resource > [INFO] [compiler:compile] > [INFO] Compiling 1 source file to /home/arthur/work/gwt-example/target/classes > [INFO] [dependency:unpack {execution: unpack}] > [INFO] Configured Artifact: com.google.gwt:gwt-dev:linux-libs:1.5.3:zip > [INFO] Unpacking > /home/arthur/.m2/repository/com/google/gwt/gwt-dev/1.5.3/gwt-dev-1.5.3-linux-libs.zipto > /home/arthur/.m2/repository/com/google/gwt/gwt-dev/1.5.3 > with Includes null and excludes:null > [INFO] [gwt:compile {execution: default}] > [INFO] establishing classpath list (buildClaspathList - scope = COMPILE) > [INFO] google.webtoolkit.home (gwtHome) *not* set, using project POM > for GWT dependencies > Compiling module com.example.Application > Compilation succeeded > Linking compilation into > /home/arthur/work/gwt-example/target/gwt-example-1.0-SNAPSHOT/com.example.Application > [INFO] [resources:testResources] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered > resources, i.e. build is platform dependent! > [INFO] skip non existing resourceDirectory > /home/arthur/work/gwt-example/src/test/resources > [INFO] [compiler:testCompile] > [INFO] Compiling 2 source files to > /home/arthur/work/gwt-example/target/test-classes > [INFO] [surefire:test] > [INFO] Surefire report directory: > /home/arthur/work/gwt-example/target/surefire-reports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running com.example.AStandardNonGwtTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 sec > Running com.example.client.TestExampleA > Loading module 'com.example.Application.JUnit' > Loading inherited module 'com.example.Application' > [ERROR] Unable to find 'com/example/Application.gwt.xml' on your > classpath; could be a typo, or maybe you forgot to include a classpath > entry for source? > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.697 > sec <<< FAILURE! > > Results : > > Tests in error: > testSomething(com.example.client.TestExampleA) > > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0 > > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] There are test failures. > > Please refer to /home/arthur/work/gwt-example/target/surefire-reports > for the individual test results. > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 36 seconds > [INFO] Finished at: Wed Nov 19 14:57:40 EST 2008 > [INFO] Final Memory: 16M/29M > [INFO] > ------------------------------------------------------------------------ > > -- > Arthur Kalmenson --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "gwt-maven" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-maven?hl=en -~----------~----~----~----~------~----~------~--~---
