Skip to content

<DataCollector> Tag makes tests fail with error message "Invalid test runner output" #62

@GlassOfJuice

Description

@GlassOfJuice

Some background, I started to use the test adapter for catch2 for my own project and it worked wonderfully. One day I was fed up with the abundance of random std/catch code that was shown to me in the test coverage results so I sought to remove them.

After some time I managed to get them deleted using this .runsettings file (Only showing the important part):

<DataCollecttionRunSettings>
    <DataCollector friendlyName="Code Coverage">
        <Configuration>
            <CodeCoverage>
                <Functions>
                    <Exclude>
                        <Function>.*Catch.*</Function>
                        <Function>.*std.*</Function>
                    </Exclude>
                </Functions>
            </CodeCoverage>
        </Configuration>
    </DataCollector>
</DataCollecttionRunSettings>

The problem is that if I use this .runsettings file the results actually get filtered as expected, the problem is that the tests fail with Invalid test runner output. -------------------------..., but if I remove friendlyName=Code Coverage the tests resume to run correctly but the filtering fails.

I was wondering if it is a problem with the adapter or not, I wasn't able to find any explanation to this in the web nor in the documentation of the project sadly :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions