branch: elpa/buttercup commit 389dc438a00353d2eaa86550a995ecdb7fce25b0 Author: Ryan C. Thompson <r...@thompsonclan.org> Commit: Jorgen Schäfer <jorgen.schae...@gmail.com>
Fix a problem with reporter tests suppressing failure messages The test for the batch reporter was inappropriately clearing the list of test failures, so that any failures that occurred before that test would not have their errors shown. Fixes #108. --- tests/test-buttercup.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el index c120574..4455572 100644 --- a/tests/test-buttercup.el +++ b/tests/test-buttercup.el @@ -768,7 +768,8 @@ (describe "on the buttercup-started event" (it "should emit the number of specs" - (let ((buttercup-reporter-batch--start-time nil)) + (let ((buttercup-reporter-batch--start-time nil) + (buttercup-reporter-batch--failures nil)) (buttercup-reporter-batch 'buttercup-started (list parent-suite))) (expect 'buttercup--print