Hello everyone,

I've managed to get GWTTestSuites to execute, and it works fine when I
use "mvn gwt:test", but when I run "mvn test" it fails. Any help would
be greatly appreciated (I can't package this library). I'm using
gwt-maven the latest 2.0-beta26 and generated the POM from the
archetype. I'll paste the successful "mvn gwt:test" followed by "mvn
test".

Successful "mvn gwt:test" run:

[EMAIL PROTECTED]:~/work/mshab-widgets$ mvn gwt:test
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'gwt'.
[INFO] ------------------------------------------------------------------------
[INFO] Building mshab-widgets
[INFO]    task-segment: [gwt:test]
[INFO] ------------------------------------------------------------------------
[INFO] [gwt:test]
[INFO] running GWTTestCase tests (using test name filter -  GwtTest*)
[INFO] establishing classpath list (buildClaspathList - scope = TEST)
[INFO] google.webtoolkit.home (gwtHome) *not* set, using project POM
for GWT dependencies
[INFO] com.sinai.mshab.GwtTestMshabWidgetsSuite completed, GWTTestCase
result: OK (8 tests)
[INFO] all tests completed - ran 1 tests - see results in target/gwtTest
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19 seconds
[INFO] Finished at: Wed Nov 19 15:34:43 EST 2008
[INFO] Final Memory: 6M/12M
[INFO] ------------------------------------------------------------------------


Failed "mvn test" run:

[EMAIL PROTECTED]:~/work/mshab-widgets$ mvn test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building mshab-widgets
[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 9 resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dependency:unpack {execution: unpack}]
[INFO] Configured Artifact: com.google.gwt:gwt-dev:linux-libs:1.5.3:zip
[INFO] gwt-dev-1.5.3-linux-libs.zip already unpacked.
[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.sinai.mshab.MshabWidgets
Compilation succeeded
Linking compilation into
/home/arthur/work/mshab-widgets/target/mshab-widgets-1.0-SNAPSHOT/com.sinai.mshab.MshabWidgets
[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/mshab-widgets/src/test/resources
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/home/arthur/work/mshab-widgets/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
[ERROR]: No test suite found.  Nothing to run
Loading module 'com.sinai.mshab.MshabWidgets.JUnit'
   Translatable source found in...
      [WARN] No source path entries; expect subsequent failures
com.google.gwt.core.ext.typeinfo.NotFoundException: java.lang.Object
        at 
com.google.gwt.core.ext.typeinfo.TypeOracle.refresh(TypeOracle.java:544)
        at 
com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracleMediator.java:394)
        at 
com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:137)
        at com.google.gwt.dev.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:477)
        at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
        at 
com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:168)
        at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:628)
        at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:150)
        at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:219)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at org.testng.junit.JUnitTestRunner.doRun(JUnitTestRunner.java:244)
        at org.testng.junit.JUnitTestRunner.start(JUnitTestRunner.java:217)
        at org.testng.junit.JUnitTestRunner.run(JUnitTestRunner.java:205)
        at org.testng.TestRunner$2.run(TestRunner.java:536)
        at org.testng.TestRunner.runWorkers(TestRunner.java:712)
        at org.testng.TestRunner.privateRunJUnit(TestRunner.java:548)
        at org.testng.TestRunner.run(TestRunner.java:474)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
        at org.testng.SuiteRunner.run(SuiteRunner.java:198)
        at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:821)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:788)
        at org.testng.TestNG.run(TestNG.java:708)
        at 
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
        at 
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:155)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
[ERROR] Unable to find type 'java.lang.Object'
   [ERROR] Hint: Check that your module inherits
'com.google.gwt.core.Core' either directly or indirectly (most often
by inheriting module 'com.google.gwt.user.User')
Tests run: 8, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 3.415
sec <<< FAILURE!

Results :

Failed tests:
  testInvalidConstArgs(com.sinai.mshab.widgets.TestAbstractRadioButtonGroup)
  testEmptyChoices(com.sinai.mshab.widgets.TestAbstractRadioButtonGroup)
  testCreateSingleRadio(com.sinai.mshab.widgets.TestAbstractRadioButtonGroup)
  testCreateMultipleRadio(com.sinai.mshab.widgets.TestAbstractRadioButtonGroup)
  
testCreateMultipleRadioDuplicateText(com.sinai.mshab.widgets.TestAbstractRadioButtonGroup)
  
testIsCheckedAndValueEmptyCollection(com.sinai.mshab.widgets.TestAbstractRadioButtonGroup)
  
testIsCheckedAndValueSingle(com.sinai.mshab.widgets.TestAbstractRadioButtonGroup)
  
testIsCheckedAndValueMultiple(com.sinai.mshab.widgets.TestAbstractRadioButtonGroup)

Tests run: 8, Failures: 8, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to
/home/arthur/work/mshab-widgets/target/surefire-reports for the
individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30 seconds
[INFO] Finished at: Wed Nov 19 15:33:27 EST 2008
[INFO] Final Memory: 14M/28M
[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
-~----------~----~----~----~------~----~------~--~---

Reply via email to