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

   I took a look at this and put up a fix: 
[https://github.com/apache/lucene/pull/16140](https://github.com/apache/lucene/pull/16140)
   
   the issue happens when `tests.iters > 1`. randomizedrunner changes test 
names by adding `{seed=...}`, so the method name isn’t exactly the same anymore.
   
   because of that, when we run something like `--tests ClassName.methodName`, 
junit can’t match it and ends up running zero tests.
   
   the fix just handles this automatically. instead of trying to match the 
method directly, we run the whole class and pass the method name using 
`tests.method`, which randomizedrunner already supports.
   
   also added the same support for junit5 so it works the same there.
   
   so now we can just run:
   
   ```
   ./gradlew test --tests 
TestDocValuesQueries.testDuelPointRangeNumericRangeQuery -Ptests.iters=10
   ```


-- 
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