=== Make unit tests easier to debug === '''Background:''' Our in-code unit tests are wonderful tools for catching bugs, but sometimes they fail on different platforms and for different users (this helps us catch bugs). Unfortunately, people are unaware that they need to get a stack trace by doing: build -- debugcppunit=t So - we should add a wrapper script around all cppunit tests, that tells people about this magic option if the test fails. See solenv/inc/settings.mk's CPPUNITTESTER= assignment, and GDBCPPUNITTRACE pieces. We should probably use something similar to solenv/bin/build.pl's warning on failure (including sourcing the environment), to make it easy to cut/paste the right lines. '''Skills:''' perl, dmake
Hey Bjoern, I think Michael did something in this direction.
@Michael: Please check if (and how much) of the Easy Hack is still valid.
Yep, I got fed up of trying to remember this myself & fixed it (at least for gnumake) in master.
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillScript ) [NinjaEdit]