Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test discovery depends on filename case sensitivity #29

Open
jeroenakershoek opened this issue Aug 11, 2019 · 0 comments
Open

Test discovery depends on filename case sensitivity #29

jeroenakershoek opened this issue Aug 11, 2019 · 0 comments

Comments

@jeroenakershoek
Copy link

jeroenakershoek commented Aug 11, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant