Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-11055

Allow selecting test methods and classes in Selenium 2 tests using the "pattern" system property

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.2
    • 6.2-rc-1
    • Test Framework
    • None
    • Unknown
    • N/A

    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)

      Attachments

        Activity

          People

            enygma Eduard Moraru
            enygma Eduard Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: