Skip to content

Test discovery depends on filename case sensitivity #29

@jeroenakershoek

Description

@jeroenakershoek

It seems that test-case discoverability depends on the case of the filename as referenced in the Solution file. Other test runners (e.g. GTest) do not fail on this.

If the case of the filename and the name of the project does not match, the discovery will fail and give an "Invalid source" error, e.g:

CheckSource name: coretests
Invalid source.
Accumulated Testcase count: 0

After some digging it turned out that the following line in my solution file was the culprit:
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CoreTests", "coretests\coretests.vcxproj", "{BEC24047-EEE1-EE48-DAA5-85524471212A}"

After changing it to match the case of the project name it worked:
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CoreTests", "coretests\CoreTests.vcxproj", "{BEC24047-EEE1-EE48-DAA5-85524471212A}"

Not entirely sure if this is an issue with the VS test runner or with the adapter, but even if it's in VS, perhaps this is something that could be worked around in the adapter.

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