krzysztof-jusiak on cpp14
Add Utah C++ Programmers video (compare)
krzysztof-jusiak on master
[cppcon-2021] cleanup (compare)
How do I make the tests there print out the failing values?
For example, when I change this:
test_assert(1 == reporter.tests_.pass); - test_assert(0 == reporter.tests_.fail); + test_assert(42_i == reporter.tests_.fail); test_assert(0 == reporter.tests_.skip);
I get this output:
/Users/clare/Documents/develop/Testing/ut-claremacrae/cmake-build-spaces/cmake-build-debug-gcc9-brew/test/ut/ut /Users/clare/Documents/develop/Testing/ut-claremacrae/test/ut/ut.cpp:393:FAILED Process finished with exit code 6
42 != 0
Right, that's a bit of tricky how to test a unit test framework without a unit test framework?
test_assertwhich is just a poor's man assert, but that would be using testing code to test code, not ideal;
test_assertwhich acts more like
expectbut that would require tests around it as well
Not sure what's the best solution here; for me, small changes and line where it failed is usually enough to deal with it but I don't like the experience, that's why [Boost].UT came about in the first place!