Oh, got it!
If I run
ant -Dtestcase=WatchManagerPerf test-core-java
it will work as yours. :D
But if I add a "test" word, like
ant test -Dtestcase=CreateTest
or
ant -Dtestcase=CreateTest test
then it will execute the 'CreateTest' only for the java code, but then will
execute the C tests. Ev
>> Only that the C tests
run afterwards in spite of the "test-core-java" switch option.
This sounds odd. I just did a test:
1. Sync latest master branch.
2. ant -Dtestcase=WatchManagerPerf test-core-java
I got what I expected.
*junit.run-single:*
*junit.run-concurrent:*
* [echo] Running
+1 about moving ZK-2223 to branch-3.4.
Some context about my particular question: I am able to run a single test
case and a single unit test method in a test class. Only that the C tests
run afterwards in spite of the "test-core-java" switch option. But it's a
minor annoyance, not a real problem.
More info
https://issues.apache.org/jira/browse/ZOOKEEPER-2223
We might want to get this in branch-3.4 as well - it is a useful feature
for tests.
On Mon, Jan 23, 2017 at 11:39 AM, Michael Han wrote:
> Maybe for Java test
> ant -Dtestcase=case -Dtestmethod=method ? I at least used it successfu
Maybe for Java test
ant -Dtestcase=case -Dtestmethod=method ? I at least used it successfully
on master for a couple of times.
I am not sure how to run a single C test though through ant - I ended up
modifying makefile / test driver to do that instead.
On Mon, Jan 23, 2017 at 11:31 AM, Edward Rib
Nope. :(
For what is worst: I remember it being able to run *only* a single test
many years ago (~ 2012/2013).
On Mon, Jan 23, 2017 at 5:16 PM, Michael Han wrote:
> ant -Dtestcase=foobar test-core-java ?
>
> On Mon, Jan 23, 2017 at 11:04 AM, Edward Ribeiro >
> wrote:
>
> > Hello community,
> >
ant -Dtestcase=foobar test-core-java ?
On Mon, Jan 23, 2017 at 11:04 AM, Edward Ribeiro
wrote:
> Hello community,
>
> I am used to run a single unit test with the following command:
>
> ant -Dtestcase=CreateTest test
>
> where "-Dtestcase" especifies the test class name as described here:
> http
Hello community,
I am used to run a single unit test with the following command:
ant -Dtestcase=CreateTest test
where "-Dtestcase" especifies the test class name as described here:
https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute
But for many months, I have seen that, after