Tuesday, February 14, 2017

Re: GWT junit test in super dev mode???

This looks like https://github.com/gwtproject/gwt/issues/9413
IIRC, it's triggered depending on how the tests are run, and which binding properties are defined in the gwt.xml files (in the reprocase for the issue, there's a binding property that's never used in any rebind rule; commenting it out fixes the issue).

Note that starting with GWT 2.8, tests run in -prod mode by default, so you no longer need to pass -prod in the -Dgwt.args (and this hints that you're not using 2.8 for your development ;-) )

On Tuesday, February 14, 2017 at 4:18:31 PM UTC+1, Daniel Kln wrote:
Hi Jens, 

i tried also tried your solution. Result:

java.lang.AssertionError
at com.google.gwt.dev.Permutation.assertSameAnswers(Permutation.java:105)
at com.google.gwt.dev.Permutation.mergeFrom(Permutation.java:80)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:322)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:206)
at com.google.gwt.junit.JUnitShell.compileForWebMode(JUnitShell.java:1093)
at com.google.gwt.junit.JUnitShell.maybeCompileForWebMode(JUnitShell.java:1151)
at com.google.gwt.junit.CompileStrategy.maybeCompileModuleImpl2(CompileStrategy.java:184)
at com.google.gwt.junit.CompileStrategy.maybeCompileModuleImpl(CompileStrategy.java:113)
at com.google.gwt.junit.SimpleCompileStrategy.maybeCompileModule(SimpleCompileStrategy.java:36)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1316)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1284)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:678)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)
at junit.framework.TestCase.runBare(TestCase.java:130)
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:120)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)


Am Dienstag, 14. Februar 2017 11:52:33 UTC+1 schrieb Daniel Kln:
Hi, 

i setted in the run config the arg: -Dgwt.args="-runStyle Manual:1".

When i start running the gwt unit test, i get a link, which i have to paste into a browser of my choice. This is what i expected. But than the browser shows:

Development Mode requires the GWT Developer Plugin


My question: how i can avoid this problem. In production mode the same result appears. 

Thank you a lot for your help

Daniel
  

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment