-
Notifications
You must be signed in to change notification settings - Fork 29
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 not transfering test cases - only in Debug mode #73
Comments
You could try to remove the |
Unfortunately this brings the same result... |
Do you by any chance make use of brackets in the test case names. Test cases with such names are somehow not displayed in Visual Studio Test Explorer. |
Hi, |
All looks good there. The only thing I can think of is that another test adapter may be interfering somehow. In case the Google Test and/or the Boost test adapter are enabled, disabling those may solve the problem as well.
I get the impression that may be logged by something else. |
I disabled and afterwards uninstalled all other adapters... |
runsettings.txt
Hi,
I got the problem that the test discovery within VS2022 with the adapter is finding test cases with --list-tests, but not transfering them to test explorer...
This only happens in Debug mode... Has anybody the same problems or any suggestions?
`C2A-8912: Started Catch2Adapter exe test discovery...
C2A-8912: Discover log:
ValidateSourceName name: xxx_catch2_uTest
Source: D:\WS\dev_debug_01\x64_d\bin\xxx_catch2_uTest.exe
Default Verbose Test Discovery:
Visual Leak Detector is turned off: disabled by default or config. Settings: D:\WS\dev_debug_01\x64_d\bin\vld.ini. See Wiki for more infos. Set 'VLD_SILENT' enviroment variable to 1 to prevent some outputs of the VLD.
Matching test cases:
CheckPreOperational-OK
D:\WS\dev_debug_01\src\xxx\yy.cpp(203)
CheckPreOperational-NOK
D:\WS\dev_debug_01\src\xxx\yy.cpp(220)
2 matching test cases
Testcase count: 0
Accumulated Testcase count: 0
C2A-8912: Start adding test cases to discovery sink
C2A-8912: Finished adding test cases to discovery sink
C2A-8912: Finished Catch2Adapter exe test discovery.
No test is available in D:\WS\dev_debug_01\x64_d\bin\xxx_catch2_uTest.exe. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
`
During Release mode, the two test cases are transfered properly, Test count also prints 2, and I can see them in the VS22 Test explorer...
We are using catch2 V3.3.2 and I have the extension for testadapter V2.0.0 installed...
Best regards,
Bunny
The text was updated successfully, but these errors were encountered: