architraw.pro

programming space

How to run test in Maven from console

  1. Navigate to folder with maven project.
  2. Run command:
  • run all tests from all java classes
mvn test
  • run all test from one java class
mvn test -Dtest=LoginTest
  • run one test from one java class
mvn test -Dtest=LoginTest#success_login_test