I use CMake:Refresh Tests but the compiler refuse to compile and thus I can’t debug. I have to fill in the correct codes then the exe can be generated.
My view is: TDD is a cycle with test-debug-write. Nobody can guarantee he/she can write the correct codes the first place.
Am I missing something here? Or the flow of my development is wrong?
That probably is because in the corresponding test file, say log_levels_test.cpp, the #if defined(EXERCISM_RUN_ALL_TESTS) is NOT in effect.
To have all test to run, we need to define that thing first. I normally put it at the beginning of the XXX_test.cpp file.
Further note: looking at the info provided, it seems that the test suite actually runs ALL tests and passed.
My current issue is, if one test fails, the compilation won’t finish and thus I can’t further debug.
It is not related to the plug-in because if I write all the codes correctly, the test suite can compile, build and pass. But this is not what a test case is meant for, right?