Ransom Briggs
Ransom Briggs

Reputation: 3095

What is the standard for writing tests for a play framework module?

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

Answers (1)

Marius Soutier
Marius Soutier

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

Related Questions