Details
-
Improvement
-
Resolution: Fixed
-
Major
-
6.2-rc-1
-
None
Description
Currently, Selenium2 tests allow usage of the "pattern" system property to filter which test classes to execute from an entire test suite.
For executing just a single test method from a test class, we could use surefire's "test" system property, but it does not work when we want to use more complex expressions to run methods from different classes.
Examples of useful patterns:
-Dpattern="Test1"
run all tests from the matching test class(es) (that contain(s) "Test1" in its name)
-Dpattern="Test1|Test2"
run all tests from 2 test classes
-Dpattern="Test1#method1"
run just matching method(s) from matching test class(es)
-Dpattern="Test1#method1|Test2#method2"
run just matching methods from matching test classes (more than just 1 class)
-Dpattern="Test1#method1|Test2"
mix it; run just matching methods from the first matching class(es) and ALL tests from the second matching class(es)