We use JUnit - Selenium for our web tests. We use Maven to launch them and generate a confidence report.
The test suite is quite large and takes some time to run, and sometimes single tests fail because the browser does not start. I want to be able to run the SINGLE test using maven, so I am testing tests that do not work and update the report.
I can use mvn test -Dtest=TESTCLASSNAMEto run all the tests in one test class, but this is not very good, since it takes about 10 minutes to run all the tests in our most difficult test classes, and it is very likely that some other tests (because the browser will not start) and it will ruin my report.
I know that I can run one test from Eclipse, but that is not what I am looking for.
Any help on this will be very helpful.
source
share