Avoid repetition of tests

39 views
Skip to first unread message

Alberto

unread,
Mar 5, 2012, 5:09:53 AM3/5/12
to testng-dev
I was wondering if there is any way using testng of avoiding execution
of tests if any of the files has change since the last execution. If
some conditions were reached, we can certainly avoid repeating tests
that are going to deterministicaly success or fail.

If this doesn't exist, I'd like to colaborate to get this done.

Looking forward to hearing from you

Cédric Beust ♔

unread,
Mar 5, 2012, 2:38:28 PM3/5/12
to testn...@googlegroups.com
This is more the job of a build tool than TestNG, in my opinion.

-- 
Cédric





--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To post to this group, send email to testn...@googlegroups.com.
To unsubscribe from this group, send email to testng-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-dev?hl=en.


Tomek Kaczanowski

unread,
Mar 5, 2012, 2:42:00 PM3/5/12
to testn...@googlegroups.com
Gradle is quite smart when it comes to building/executing only what
should be built/executed.

--
Regards / Pozdrawiam
Tomek Kaczanowski
http://kaczanowscy.pl/tomek

2012/3/5 Cédric Beust ♔ <ced...@beust.com>:

Alberto

unread,
Mar 6, 2012, 4:02:09 AM3/6/12
to testng-dev
Thanks for your opinion, I will take a look to Gradle, but we are
using Maven to work..



On Mar 5, 7:42 pm, Tomek Kaczanowski <kaczanowski.to...@gmail.com>
wrote:
> Gradle is quite smart when it comes to building/executing only what
> should be built/executed.
>
> --
> Regards / Pozdrawiam
> Tomek Kaczanowskihttp://kaczanowscy.pl/tomek
>
> 2012/3/5 Cédric Beust ♔ <ced...@beust.com>:
>
>
>
>
>
>
>
> > This is more the job of a build tool than TestNG, in my opinion.
>
> > --
> > Cédric
>

Mark Derricutt

unread,
Mar 6, 2012, 6:30:03 AM3/6/12
to testn...@googlegroups.com

One problem I've seen with these conditional test runners is that if you use testngs dependencies then you can end up with strange results due to classes not being included.

So your milage may vary...

-- Sent from an Android

Alberto Navarro

unread,
Mar 6, 2012, 6:32:32 AM3/6/12
to testn...@googlegroups.com
Yes, I'd have to take care of dependencies, and hierarky, and resources, and maybe an annotation for "this tests is not deterministic" (They shouldn't exist, but they do).

I am not in a hurry with this, it is only a personal project.
Reply all
Reply to author
Forward
0 new messages