-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test filter greediness for method names (#93)
The present change aims at preventing the `MyTest#testSomething` pattern from matching the `testSomethingElse` method in the following example: ```java public class MyTest { @test void testSomething() { } @test void testSomethingElse() { } ``` With `asPredicate`, the test filter matches test methods _starting with_ the given method name: > Creates a predicate that tests if this pattern is found in a given > input string. Unless the pattern doesn't encompass a method name, appending a `$` to the input pattern makes sure only exact method names are considered. Note: think about filter greediness for class names.
- Loading branch information
1 parent
d315d8f
commit 06311c6
Showing
2 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters