maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Turner (JIRA)" <>
Subject [jira] [Created] (SUREFIRE-1599) %regex pattern handling does not match documentation
Date Tue, 13 Nov 2018 00:31:00 GMT
Bryan Turner created SUREFIRE-1599:

             Summary: %regex pattern handling does not match documentation
                 Key: SUREFIRE-1599
             Project: Maven Surefire
          Issue Type: Bug
          Components: documentation
    Affects Versions: 2.22.1, 2.22.0
         Environment: Windows
            Reporter: Bryan Turner

[This pull request|] updated the inclusion/exclusion
documentation to state:

Regex matches are done over paths using slashes ("/") and not package names using dots ("."),
so the "." in pkg.\*Slow.\*.class is a regex metacharacter, which happens to match any character,
notably the (forward) slashes ("/") that make up the path. Slashes here are forward, even
on Windows

That's not true, at least in Surefire 2.22+. I've prepared a [simple reproduction|].
Built on Linux or macOS, Surefire will correctly skip {{ExampleIntegrationTest}}, but on Windows
it will run (and fail the build).

Surefire is configured as follows:

Per the documentation, that forward slash should work on Windows as well as Linux and macOS.

(Note: This also effects Failsafe, as one might expect.)

This message was sent by Atlassian JIRA

View raw message