Reputation: 3095
How do I write tests for a play framework module I am creating? I created the module using play new-module myModule but could not find anything in the generated scripts to create or run tests. What is the standard way that people write tests for play modules?
Upvotes: 1
Views: 314
Reputation: 11274
One way is to use the same path as the examples that come with play itself:
your-module
|- samples-and-tests
|- demoapp
|- test
|- ApplicationTest.java
|- BasicTest.java
Also look inside the Scala module, it uses the same approach and has one app called just-test-cases
.
Upvotes: 2