How to run a single test ?

37 views
Skip to first unread message

Antoine DESSAIGNE

unread,
Mar 8, 2011, 7:12:00 AM3/8/11
to google-web-tool...@googlegroups.com
Hi,

I've fixed an issue in gwt-user but I wasn't able to run the test I wrote.

Running the test in Eclipse as a JUnit test fails and gives me a lot of com.google.gwt.core.ext.UnableToCompleteException. It tells me to look for the previous errors but I have so many of these UnableToCompleteException that I cannot see the first one.

I don't want to do an "ant test" on the gwt-user project since there are so many tests and I just modified few lines.

What's the best way to run tests (in development and production) ?

Thanks,

Antoine.

Antoine DESSAIGNE

unread,
Mar 10, 2011, 3:20:55 AM3/10/11
to google-web-tool...@googlegroups.com
Hi,

Anyone?

To clarify, it's not my test that is not running. I didn't manage to run any tests.

Is it possible, through ant, to execute a single test suite ?

How do you launch your tests ? are you doing the complete "ant test" each time ?

Thanks,

Antoine.

2011/3/8 Antoine DESSAIGNE <antoine....@gmail.com>

Thomas Broyer

unread,
Mar 10, 2011, 4:19:54 AM3/10/11
to google-web-tool...@googlegroups.com
Some tests require that the sources (gwt-dev/src, gwt-dev/test, gwt-dev/super, gwt-user/src, etc.) be on the classpath.

Alternatively, you can indeed run only a few tests with ant, setting the gwt.junit.testcase.includes property (it defaults to **/*Suite.class), something like (from the "user" subproject) ant -Dgwt.junit.testcase.includes=**/requestfactory/client/ui/EditorTest.class test.dev.htmlunit test web.htmlunit

Antoine DESSAIGNE

unread,
Mar 10, 2011, 5:17:24 AM3/10/11
to google-web-tool...@googlegroups.com
Thanks a lot !

Now it's working fine :)

2011/3/10 Thomas Broyer <t.br...@gmail.com>
Some tests require that the sources (gwt-dev/src, gwt-dev/test, gwt-dev/super, gwt-user/src, etc.) be on the classpath.

Alternatively, you can indeed run only a few tests with ant, setting the gwt.junit.testcase.includes property (it defaults to **/*Suite.class), something like (from the "user" subproject) ant -Dgwt.junit.testcase.includes=**/requestfactory/client/ui/EditorTest.class test.dev.htmlunit test web.htmlunit

Reply all
Reply to author
Forward
0 new messages