Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-329

Support for JUNIT extensions

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.11
    • Junit 4.x support
    • None

    Description

      Is there any plan to support using JUNIT extensions such as @Category,@PreRequisite with Maven2 SureFire plugin?
      The JUNIT EXTENSION URL:
      http://www.junitext.org/

      We would like to specify the categories to run via a configurable option in the maven surefire plugin that supports JUNIT extensions

      See example Java Code: The following runs only tests with Category - Z.

      //In JUnit4
      JUnitCore core = new JUnitCore();
      // use for categories special listener, give some statistics
      core.addListener(new CategoryTextListener(System.out));
      Request req = Request.aClass(SpcfXXXXTest.class);
      core.run(req.filterWith(new CategoryFilter("Z")));

      Attachments

        1. SUREFIRE329_branch329.patch
          6 kB
          Nicolas Liochon
        2. surefire-329.txt
          117 kB
          Todd Lipcon
        3. surefire-329.txt
          29 kB
          Todd Lipcon

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              adkathuria@yahoo.com Anuj
              Votes:
              37 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: