When I run that command it doesn't run all of the tests, but it does run
*other* tests. The parameter used specifies which gwt tests to run, but
there is also a batch of non-gwt tests (i.e. traditional JUnit test cases)
that get kicked off as part of the 'test' target.
One option is to specify *exactly* which kind of test you want to run
(dev/emma/draft/web/nometa, htmlunit/remote/selenium, plus nongwt and
coverage) like this, reusing the other args you specified:
ant -Demma.enabled=false '-Dgwt.junit.testcase.includes=**/I18NSuite.class'
*test.draft.htmlunit*
There is also a target that grabs up all of the test.*.htmlunit targets:
ant -Demma.enabled=false '-Dgwt.junit.testcase.includes=**/I18NSuite.class'
*test.htmlunit*
as well as several others that work in much the same way (test.dev,
test.web, test.emma, test.draft, test.nometa).
The other is to turn off the nongwt tests using the
-Dtest.nongwt.disable=true flag:
ant -Demma.enabled=false '-Dgwt.junit.testcase.includes=**/I18NSuite.class'
*-Dtest.nongwt.disable=true* test
You may also want to turn off the coverage test, since that explicitly runs
its own test case:
<target name="test.coverage.htmlunit"
depends="compile, compile.tests"
description="Run tests for coverage support">
<fileset id="test.coverage.htmlunit.tests" dir="${javac.junit.out}"
includes="com/google/gwt/dev/js/client/CoverageTest.class"
That said, these test targets seem to be a mess of copy/paste mistakes -
some have echo statements, some don't, some remember to specify targets
they depend on, some don't. I don't seem to find a test.remote or
test.selenium (that is, one that works...), and in keeping with the other
helpful targets batching targets described above, this seems to be an
oversight.
On Wed, Sep 4, 2013 at 1:03 PM, Brian Slesinsky <[email protected]> wrote:
> Hi, my guess is that it's just an oversight; at Google we have our own
> build stystem so we don't use the ant scripts all that often. If you want
> to dive in, I'd be interested in what you find.
>
> - Brian
>
>
> On Sat, Aug 31, 2013 at 2:33 PM, Daniel Trebbien <[email protected]>wrote:
>
>> Hi,
>>
>> I am trying to run only the I18NSuite tests in
>> user/test/com/google/gwt/i18n/I18NSuite.java but I am finding
>> that gwt.junit.testcase.includes is no longer working.
>>
>> This used to work:
>>
>> ant -Demma.enabled=false
>> '-Dgwt.junit.testcase.includes=**/I18NSuite.class' test
>>
>>
>> but now this runs all of the tests instead of just the tests in I18NSuite.
>>
>> I also tried adapting the command line mentioned in the thread How to
>> run a single test
>> ?<https://groups.google.com/d/topic/google-web-toolkit-contributors/RSPG_158Y6c/discussion>,
>> but all of the tests for the user subproject are still run.
>>
>> Was support for gwt.junit.testcase.includes removed?
>>
>> Daniel
>>
>> --
>> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "GWT Contributors" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
> ---
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
218.248.6165
[email protected]
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
---
You received this message because you are subscribed to the Google Groups "GWT
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.