Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903930

Support running individual parameterized tests and @Nested test classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • jtreg7.6
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: