[Bug]: Codecoverge --exclude
doesn't allow to pass file names with commas
#40211
Labels
Area/TestFramework
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Bug
Description
From update 6 onwards, testerina supports a new feature that allows to exclude files from the code coverage report.
The format of the command is
bal test --code-coverage --excludes=<source_path1>,<source_path2>
.However, when the name of the source file that has a comma is given as a value to the
--excludes
flag, it splits the file name from the comma and identifies as two files.Steps to Reproduce
source,file.bal
bal test --test-report --code-coverage --excludes='source,file.bal' --coverage-format=xml
Affected Version(s)
2201.6.0
OS, DB, other environment details and versions
MacOS
Related area
-> Test Framework
Related issue(s) (optional)
#27158
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: