marcro to indicate current test function on STDOUT
since our test.sh runner can be used to verify the expected output printed by tests, working with these output transcripts of larger tests can be hard at times. These separators help to find who produced which output and they prevent a regexp match to grep beyond the feed of a single function (which can be a common problem when using the self-diagnostic output of the facility currently in test, which obviously will be similar on any data printed.
This commit is contained in:
parent
de71baccc3
commit
5a5beebd15
2 changed files with 9 additions and 1 deletions
|
|
@ -175,4 +175,12 @@ namespace test{
|
|||
CHECK (lumiera_error_expect (LUMIERA_ERROR_##ERROR_ID));\
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Macro to mark the current test function in STDOUT.
|
||||
* This can be helpful to digest a long test output dump
|
||||
*/
|
||||
#define MARK_TEST_FUN \
|
||||
cout << "|" << endl << "| »"<<__FUNCTION__<<"«" <<endl;
|
||||
|
||||
#endif /*LIB_TEST_TEST_HELPER_H*/
|
||||
|
|
|
|||
|
|
@ -303,6 +303,7 @@ namespace test {
|
|||
void
|
||||
invokeCommand ()
|
||||
{
|
||||
MARK_TEST_FUN
|
||||
EventLog nexusLog = gui::test::Nexus::startNewLog();
|
||||
|
||||
// Setup test stage: define an command/action "in Proc"
|
||||
|
|
@ -339,7 +340,6 @@ namespace test {
|
|||
Command::get (DUMMY_CMD_ID).undo();
|
||||
CHECK (dummyState == prevState);
|
||||
|
||||
|
||||
cout << "____Nexus-Log_________________\n"
|
||||
<< util::join(nexusLog, "\n")
|
||||
<< "\n───╼━━━━━━━━━╾────────────────"<<endl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue