![]() In the Maven tool window, under the Lifecycle node, right-click the test goal.įrom the context menu, select Create 'name of the module/project and name of a goal'. The run configuration will be saved under the Run Configurations node. ![]() If you want to run just a single test instead of all the tests declared in your project, create a Maven run configuration for a single test with the Maven -Dtest=TestName test command. Note that goals specified in the Maven surefire plugin will be activated at this phase and all tests in a project or in a module will be run. The Maven surefire plugin is declared in the super POM by default, but you can adjust its settings in your project's POM. You can also pass the Maven Surefire plugin parameters when you run JUnit or TestNg tests and the Maven Failsafe plugin parameters for running integration tests. When delegating test execution to Maven, IntelliJ IDEA will display the result in the Run tool window. ![]() ![]() In the Maven project, you can create and run tests the same way you do in any other project using the default IntelliJ IDEA test runner. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |