You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution:
replacing
cpputest_buildtime_discover_tests(CppUTestExtTests)
with
add_test(NAME CppUTestExtTests COMMAND CppUTestExtTests)
caused the desired behavior of running all test in one process
The text was updated successfully, but these errors were encountered:
Hi,
If I understand it correctly, you test in OrderedTestTest.cpp
cpputest/tests/CppUTestExt/OrderedTestTest.cpp
Line 225 in 484e098
as sequence. The tests share a state and depend on this shared state and its order.
Now you run them with ctest. The problem is the ctest runs each test in a new process. Meaning the test fail.
We (@balazs-dot and @stefaneicher ) tested in version 4.0 with setting (TESTS_DETAILED on V4.0, CPPUTEST_TESTS_DETAILED in latest)
cpputest/cmake/Modules/CppUTest.cmake
Line 6 in 484e098
cpputest/tests/CppUTestExt/CMakeLists.txt
Line 41 in 67d2dfd
Solution:
replacing
cpputest_buildtime_discover_tests(CppUTestExtTests)
with
add_test(NAME CppUTestExtTests COMMAND CppUTestExtTests)
caused the desired behavior of running all test in one process
The text was updated successfully, but these errors were encountered: