Abstract: How to configure test mode for running Play Framework in Intellij Idea
For example, I used Intellij Idea for development, but it was useful to Play! If you want to run the test mode of Play, is it a bit helpless?
Some children's shoes may say that a remote debug should be configured, and then the cmd can directly play test! That's right. This is a method. However, these students may have overlooked the most important resource-Official Website documentation. I am also tossing for a long time, and finally around a large circle in the official website to find the configuration method (http://www.playframework.com/documentation/1.2.3/ide ).
The specific configuration is as follows:
1. Enter the application configuration interface
2. Add a new application configuration, start a name, and then:
- In the Main class column, enter the startup class of the project: play. server. Server (Play1 series ),
- In the VM options column, enter-Dapplication. path = "."-Dplay. id = test
- If you don't want to run the test mode, you can skip the Dplay. id parameter next to it. By now, the project is ready to run. If you need it, you can continue to read it.
3. Open the project configuration page (F4-project structure-modules-dependencies-+-library)
4. Create a library, find {playhome} \ modules \ testrunner \ lib \ play-testrunner.jar, add it to the project dependency, select OK, everything is done, ready!
5. Run the project and see the output happily:
IntelliJ IDEA 12 create a Web project graphic tutorial
Graphic tutorial for Android program development using IntelliJ IDEA
IntelliJ IDEA 12 haXe NME application Configuration Guide