csoltenborn / GoogleTestAdapter

Visual studio extension that adds support for the C++ testing framework Google Test.
Other
142 stars 102 forks source link

Throwing test: wrong crash detection #110 #358

Open edenroz opened 7 months ago

edenroz commented 7 months ago

I have a test that handles a throwed excecption but the exception seems not handled, maybe it's because Isolator++.

The adapter wrongly detect my PASSED tests as FAILED and prints the message "!! This test has probably CRASHED !!"

Raw output of google test follows

[==========] Running 3 tests from 2 test cases. [----------] Global test environment set-up. [----------] 2 tests from TestLPR_COMMOD_IM_IntegrityTilesModelOffset [ RUN ] TestLPR_COMMOD_IM_IntegrityTilesModelOffset.When_Clean_Expect_CallTo_LxR_xxxMOD_IM_SecFeatSimulationModel_clean [ OK ] TestLPR_COMMOD_IM_IntegrityTilesModelOffset.When_Clean_Expect_CallTo_LxR_xxxMOD_IM_SecFeatSimulationModel_clean (363 ms) [ RUN ] TestLPR_COMMOD_IM_IntegrityTilesModelOffset.When_Clean_Expect_CallTo_LPR_COMMOD_IM_IntegrityTilesModel_Clean [ OK ] TestLPR_COMMOD_IM_IntegrityTilesModelOffset.When_Clean_Expect_CallTo_LPR_COMMOD_IM_IntegrityTilesModel_Clean (44 ms) [----------] 2 tests from TestLPR_COMMOD_IM_IntegrityTilesModelOffset (413 ms total)

[----------] 1 test from TestMbuLKIntaglioRefl [ RUN ] TestMbuLKIntaglioRefl.When_Ctor_Expect_CallTo_AddModel