-
Notifications
You must be signed in to change notification settings - Fork 102
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
Failing to list tests when using value-parameterized tests #148
Comments
Thanks for your bug report! This is a bit strange, since the error indicates that the test executable could not be run (but no parsing of the output should have happened yet), so I do not see how this could be related to the tests contained in that executable. Are you using the old or the new test execution framework (see options), and can you reproduce the problem with the other framework, too? Currently, my guess would be that there's a difference between execution on the console and within the adapter (e.g., something's missing on the PATH for the latter). Can you please double-check whether this is the case? For instance, can you run your executable via VisualStudio? I.e., make your test project the StartUp project of your solution, add the If this all doesn't help, I fear we need some sample test code to reproduce the problem over here (of course, no actual test logic required). Could you then please try to strip down your code and provide a minimal test file having that problem? |
Thanks for the quick response. Running the executable from VisualStudio doesn't seem to have any issues. I don't have the time at the moment to create a minimal version of the code, but I will take a look at this in the next few days. |
I noticed only now that the output of your executable with option
Is this an issue of GitHub formatting or something, or is this indeed the output the executable produces? If the latter, which gtest version is this? And just to be sure: Have you checked whether the test executable's return code is indeed 0 when run with option Also to be on the safe side: Have you tried the old execution framework? You didn't mention that in your last post... |
Closed due to inactivity - feel free to re-open if you still have problems... |
…tenborn#148) * update googletest release to 1.8.1 * update vsix to install on dev16 * update nuget package references to 1.8.1 and add 2019 as supported version * update nuget references in project to latest version * remove flag that is being removed * fix debug build and update default toolset for project template * allow v142 toolset
Hi,
My google tests contain some value-parameterized tests. These run the tests over the values contained in an std::vector<std::pair<SomeType,SomeType>> where SomeType is a type I've defined.
The GoogleTestAdapter seems to have trouble listing the tests. Here's the output:
If I run the test executable with --gtest_list_tests myself, it runs successfully with the following output:
If I comment out the parameterized tests from the code, the GoogleTestAdapter behaves correctly and I can run the tests.
Thanks,
Will
The text was updated successfully, but these errors were encountered: