hakandilek / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

Support generation of TestNG (instead of JUnit) tests #263

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the new feature you have in mind:
Ability to have Spock generate TestNG test classes instead of JUnit test 
classes.

Which particular problem would this feature solve for you?
We would like to be able to abandon JUnit altogether and use TestNG 
exclusively, but we don't want to give up Spock.

Original issue reported on code.google.com by cmoshe...@gmail.com on 18 Aug 2012 at 3:24

GoogleCodeExporter commented 9 years ago
Unfortunately, this isn't going to happen. First, Spock integrates very deeply 
with JUnit. Second, it's unclear whether it would even be possible to integrate 
with TestNG. (When I looked into this a few years ago, I couldn't find a way.) 
Last but not least, this would require a huge and ongoing effort, and it's 
unclear what benefits it would have.

PS: Spock isn't generating JUnit tests. It implements a @RunWith runner to take 
advantage of JUnit's build tool and IDE integration. Other than that, Spock is 
a completely self-standing test framework.

Original comment by pnied...@gmail.com on 18 Aug 2012 at 3:32