dweiss commented on issue #16121:
URL: https://github.com/apache/lucene/issues/16121#issuecomment-4561212960

   For junit4's parameterized tests, gradle works correctly:
   ```
   @RunWith(Parameterized.class)
   public class TestJunit4TestFiltering {
     @Parameterized.Parameters(name = "{index}: {0}")
     public static Iterable<Object[]> data() {
       return List.of(new Object[][] {{"a"}, {"b"}});
     }
   
     public TestJunit4TestFiltering(String param) {}
   
     @Test
     public void testMethod1() {}
     
     @Test
     public void testMethod2() {}
   }
   ```
   
   and:
   ```
   ./gradlew -p lucene/test-framework/ test --tests 
"TestJunit4TestFiltering.testMethod1" -Ptests.slowestTests.minTime=0 
-Ptests.iters=3
   
   :lucene:test-framework:test (SUCCESS): 2 tests
   The slowest tests during this run:
      0.00s TestJunit4TestFiltering.testMethod1[0: a] (:lucene:test-framework)
      0.00s TestJunit4TestFiltering.testMethod1[1: b] (:lucene:test-framework)
   ```
   
   Like I said - it "strips" the [...] parameters fine. It doesn't recognize 
{...} suffixes though. The right fix would be for gradle to detect valid method 
prefixes... it may be simpler to tweak this on randomizedtesting side though 
and use [...] for reiteration suffixes though - I'll look into that. @iprithv - 
it would be great to fix it in gradle though, if you think you can find the 
right place.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to