Announcement Announcement Module
No announcement yet.
Hooking into Roo Integration Tests Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

    Good idea?

  • #2
    There's a jira ticket open for improve test generation facilities. Maybe your suggest could fit or expand it??



    • #3
      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.


      • #4
        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 --path SRC_TEST_JAVA" to create a new empty test class.