Closed tmarble closed 7 years ago
In addition the main cli.clj
change changes the output
17-04-27 19:34:50 cerise WARN [pamela.cli:288] - exit 0 pamela in DEV MODE. Not exiting repl? false test-mode true
to log/info level to reduce the output pollution when running tests.
Should we still expect to see WARN instead of INFO for these messages?
WARN exit 0 plan-schema in DEV MODE. Not exiting -> repl? false test-mode true
@pmdoll no, it adds stdout pollution... see the comment 2 above.
A problem with adding "negative" tests is that we expect errors and, previously, these actions would blurt error messages (typically on stderr).
This fix introduces the #'match-eval-out-err macro which can be used it tests to:
In addition to testing for a failure exit code this macro helps ensure that for both positive and negative test cases that the output has (at least) some sanity as represented by the given regex and neither stream pollutes the test output (which could lead to confusion about the overall success of tests).
Signed-off-by: Tom Marble tmarble@info9.net