Support running individual parameterized tests and @Nested test classes

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • jtreg7.5.2
    • Affects Version/s: None
    • Component/s: tools
    • None

      jtreg has support for running individual JUnit and TestNG test methods through the use of a 'query string' that is appended to the end of the name of a test, prefixed by a '?' character. Currently, only a method name is supported as a query string.

      There are however 2 issues with this:

      1.) Due to the way JUnit works, passing only the method name means JUnit will look for a method that has no parameters. This means that running parameterized tests is currently not supported.
      2.) JUnit has the concept of nested test classes (annotated with @Nested). However, it's currently not possible to run individual nested test classes.

      We can enhance the format of the query string to allow selecting nested test classes and parameterized tests as well.

            Assignee:
            Jorn Vernee
            Reporter:
            Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: