Skip to content

Test discovery not transfering test cases - only in Debug mode #73

@ghost

Description

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

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