IntelliJ IDEA test mode for running the Play Framework

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.