Hi Shai,

 

I think, I remember the difference: tests.dups returns the whole suite with the 
same random seed, so every run is 100% identical. Tests.iters allows to 
configure the random seed, by default they are different, but depend on each 
other. The internal handling of random seeds are the reason why you cannot use 
globs (I don’t know why…). It was not easy to understand to me.

About the deprecation: Somebody told me that in a private “explanation” talk 
via GTalk J

 

Uwe

 

-----

Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen

 <http://www.thetaphi.de/> http://www.thetaphi.de

eMail: [email protected]

 

From: Shai Erera [mailto:[email protected]] 
Sent: Sunday, December 09, 2012 11:54 AM
To: [email protected]
Subject: Re: Question on -Dtests.iters needing the glob

 

ant test-help doesn't indicate that it's been deprecated. Rather, it documents 
that you can combine the two ! :).

Shai

On Sun, Dec 9, 2012 at 12:38 PM, Uwe Schindler <[email protected]> wrote:

Hi,

 

I think (!), tests.iters was „deprecated“ by Dawid – to me this caused lots of 
confusion so I have the same questions like you. Have to look it up in the 
mailing list archive.

 

-----

Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen

http://www.thetaphi.de <http://www.thetaphi.de/> 

eMail: [email protected]

 

From: Shai Erera [mailto:[email protected]] 
Sent: Sunday, December 09, 2012 11:32 AM


To: [email protected]
Subject: Re: Question on -Dtests.iters needing the glob

 

I see. So -Dtests.dups=100 -Dtests.method=testXYZ (no glob) -Dtests.jvms=1 
would run 100 repetitions of testXYZ on 1 JVM, only that way I don't need to 
specify a glob?

Why do we have -Dtests.iters then? Why not just stick w/ dups and document that 
you can restrict the number of JVMs if you want?

Shai

On Sun, Dec 9, 2012 at 12:10 PM, Uwe Schindler <[email protected]> wrote:

You can use tests.jvms=1 to force only 1 JVM.

 

-----

Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen

http://www.thetaphi.de <http://www.thetaphi.de/> 

eMail: [email protected]

 

From: Shai Erera [mailto:[email protected]] 
Sent: Sunday, December 09, 2012 11:04 AM
To: [email protected]
Subject: Re: Question on -Dtests.iters needing the glob

 

Doron just told me that I can use -Dtests.dups, which is great since it 
supports no-globbing and runs tests in parallel on multiple JVMs (4 on my 
laptop).

While this is great, it'd still be good if tests.iters supported no globbing 
implicitly. Because it doesn't help to run tests that are concurrent already, 
on multiple JVMs :). Now more threads compete on CPU resources.

Shai

On Sun, Dec 9, 2012 at 11:18 AM, Shai Erera <[email protected]> wrote:

Hi

Can the randomizing test framework add the glob implicitly, if a -Dtests.method 
is defined together with -Dtests.iters?
I don't mind adding the glob, but it'd be much nicer and easier if the 
framework did it. Like, it could just check that the specific test method 
invocation startsWith tests.method?

The reason I'm asking is because when I run a single test method from eclipse 
and add -Dtests.iters, it doesn't work.
And I always forget that you cannot run them like that. You have to run the 
entire test-class, and add the tests.method filter.
But then I forget to remove the filter when I actually want to test the entire 
class ... or if I do remember that, I need to create
several run configurations with names ...

This is just a convenience. If JUnit doesn't allow that, I'll live without it.

Shai

 

 

 

Reply via email to