google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

Support for parameterized tests using JUnitParameter #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
JUnit Parameters (code.google.com/p/junitparameters) is a framework that allows 
parameterizing unit tests with Junit by specifiying a  method that can be used 
to inject parameters to the Tests. 

It is implemented by a custom Junit Runner, what makes it incompatible with 
gwt-test-utils' own runner. However, this runner should not interfere the way 
gwt-test-utils works, as it doesn't require custom byte code generation at 
class load. Therefore, extending the basic gwt-test-utils' runner seams 
achivable. 

Original issue reported on code.google.com by pablocha...@gmail.com on 31 Jul 2012 at 9:08

GoogleCodeExporter commented 9 years ago
The developer of JunitParams pointed me to this wiki entry which explains how 
to enable a JUnit runner to handle parameterised tests:

https://code.google.com/p/junitparams/wiki/MergingWithOtherRunners

Original comment by pablocha...@gmail.com on 31 Jul 2012 at 9:49

GoogleCodeExporter commented 9 years ago
This is exactly what I was thinking : delegate test computing the 
JUnitParameterRunner. Thanks for the link !

Original comment by gael.laz...@gmail.com on 1 Aug 2012 at 6:00

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 7 Aug 2012 at 5:18

GoogleCodeExporter commented 9 years ago
Hi,

Since JUnitParameters support is very easy to do, I decided to add it to the 
0.40 version which will be released very soon. I just deployed a new 
0.40-SNAPSHOT version with support for it. Could you please give it a try ?

Before updating, you should read this wiki page carefully : 
http://code.google.com/p/gwt-test-utils/wiki/MigrationTo040

Thanks !

Original comment by gael.laz...@gmail.com on 7 Aug 2012 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 7 Aug 2012 at 8:13

GoogleCodeExporter commented 9 years ago
Hi. That's great! I'll test it this week. Thanks

Original comment by pablocha...@gmail.com on 14 Aug 2012 at 9:47