Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8369663

[IR Framework] Exclude IR verification when using DTest on a @Run method with multiple tests

XMLWordPrintable

      When using -DTest=test and test() is part of a @Run method for multiple @Test methods, then the IR framework will treat DTest as if you specified all the @Test methods for that single @Run method.

      There is not really much we can do to avoid execution of all the non-interesting @Test methods that you want to exclude with DTest. But we could go a step further and at least exclude IR verification for these other tests run with the same @Run method. This is what this RFE proposes to do.

      Example:
      @Test
      @IR(...)
      public void test1() {}

      @Test
      @IR(...)
      public void test2() {}

      @Test
      @IR(...)
      public void test3() {}

      @Run(test = {"test1", "test2"})
      public void runMultipleTests() {
           test1();
           test2();
      }


      Using -DTest=test1:
      - Do not run test3().
      - New with this RFE: Should only perform IR verification for test1() while still compiling test1() and test2().

            Unassigned Unassigned
            chagedorn Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: