Maven - Selenium - Possible to run only one test
Posted
by Jonas Söderström
on Stack Overflow
See other posts from Stack Overflow
or by Jonas Söderström
Published on 2010-03-18T08:18:07Z
Indexed on
2010/03/18
8:21 UTC
Read the original article
Hit count: 260
Hi
We are using JUnit - Selenium for our web tests. We use Maven to start them and build a surefire report.
The test suite is pretty large and takes a while to run and sometimes single tests fail because the browser won't start. I want to be able run a SINGLE test using maven so I retest the tests that fail and update the report.
I can use mvn test -Dtest=TESTCLASSNAME
to run all the tests in one test class, but this is not good enough since it takes about 10 minutes to run all the tests in our most complicated test classes and it's very likely that some other test will fail (because the browser wont start) and this will mess up my report.
I know I can run one test from Eclipse but that is not what I am looking for.
Any help on this would be very appriciated
© Stack Overflow or respective owner