Nov 29th, 2009, 09:35 PM
Hooking into Roo Integration Tests
In the same vein as Scaffolded Controllers and Manual controllers, I would like to see Roo generate 'manual' integration tests.
This will let me fast track work on a number of things, of which the most important on would be custom JPA queries.
If Roo could generate stub classes/aspects where I can:
- Define specific test data (like DoD, but with more sensible values that are pertinent to the application domain).
- A stub integration test class, with the work done for data setup, that would be great
Nov 30th, 2009, 02:45 AM
There's a jira ticket open for improve test generation facilities. Maybe your suggest could fit or expand it??
Nov 30th, 2009, 04:45 AM
Mm, kinda sorta... I'm more interested in a stub text fixture that lets me do most the work, rather than telling Roo how to do it's thing.
Dec 1st, 2009, 11:30 PM
You can already provide a getNewTransientChoice(int) in your DataOnDemand classes and in doing so provide your own seed data. You can also use a command like "class --class com.foo.Bar --path SRC_TEST_JAVA" to create a new empty test class.