Skip to content

[BUG] 6.0.1 breaks with multiple exclude-by-attribute parameters #1624

Closed
@david-beckman

Description

@david-beckman

Describe the bug
Starting with 6.0.1, multiple exclude-by-attribute parameters results in an error

To Reproduce
coverlet.exe $testFile --target "dotnet" --format "covertura" --exclude-by-attribute "Obsolete" --exclude-by-attribute "GeneratedCode" --exclude-by-attribute "CompilerGenerated"

Expected behavior
Any of the matching attributes are excluded from the coverage results.

Actual behavior
The exe fails returning Option '--exclude-by-attribute' expects a single argument but 3 were provided.
NOTE: running the same command on 6.0.0 succeeds

Configuration (please complete the following information):
Please provide more information on your .NET configuration:
* Which coverlet package and version was used?
6.0.1
* Which version of .NET is the code running on?
dotnet sdk 8.0.200
* What OS and version, and what distro if applicable?
Windows Server 2022
* What is the architecture (x64, x86, ARM, ARM64)?
x64
* Do you know whether it is specific to that configuration?
Does not appear to be - I can replicate on Linux x64

Additional context
(none)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions