swift test --filter
does not find tests with names containing ',' when using v5.6.3
#463
Labels
swift test --filter
does not find tests with names containing ',' when using v5.6.3
#463
Description
When using Swift 5.3, tests with names containning "," are filtered correctly when using
swift test --filter
, while when using Swift 5.6.3, they are not. The same tests are found and executed when runningswift test
with no filter or when executingswift test --list-tests
.Please note that the same problem happens with '.' character on Swift 5.3. I would like to know if this behavior is normal or if I'm not using --filter correctly.
Expected behavior
Tests with names containing special characters like '.' or ',' are filtered correctly, or the unsupported characters are listed on the docs and
swift test --help
content.Actual behavior
Tests with names containing special characters like '.' or ',' are filtered correctly when
swift test --filter
is used.Steps to reproduce
LinuxMain.swift
is deprecated and that tests are automatically discovered but I'm keeping it because when I use auto-discovery, only the test function names are shown, and it's important for me to keep showing the full names)swift tests --list-tests
produces the following the output:swift test --filter test1
produces the following output:swift test --filter test2
produces the following output (test2
is not found):swift test
finds and executes both tests:Swift Package Manager version/commit hash
5.6.3
Swift & OS version (output of
swift --version && uname -a
)Swift version 5.6.3 (swift-5.6.3-RELEASE)
Target: x86_64-unknown-linux-gnu
Linux 89043a4e645e 5.10.16.3-microsoft-standard-WSL2 swiftlang/swift-package-manager#1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: