[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup 4159111 275/340: test: Verify full line for repo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup 4159111 275/340: test: Verify full line for reporter spec-done tests |
Date: |
Thu, 16 Dec 2021 14:59:49 -0500 (EST) |
branch: elpa/buttercup
commit 415911132c0d0414d71291dcaaab36076f3554a7
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
test: Verify full line for reporter spec-done tests
The batch reporter splits output of specs between spec-started and
spec-done, and in the spec-done tests the full line has to be verified
to make sure that any control characters (\r,\t,\b,\n ...) has been
used correctly. spec-started still has to be verified separately for
text that should be displayed before the test is actually run, as the
spec description shall be displayed while running the test.
---
tests/test-buttercup.el | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el
index 474da8d..7f051be 100644
--- a/tests/test-buttercup.el
+++ b/tests/test-buttercup.el
@@ -1109,27 +1109,30 @@ text properties using `ansi-color-apply'."
(buttercup--set-start-time spec)
(setf (buttercup-spec-failure-description spec) "DONTSHOW")
(buttercup--set-end-time spec)
+ (buttercup-reporter-batch 'spec-started spec)
(buttercup-reporter-batch 'spec-done spec)
(expect (buttercup-output) :to-equal
- (format " (%s)\n" (buttercup-elapsed-time-string spec)))
- )
+ (format " spec (%s)\n"
+ (buttercup-elapsed-time-string spec))))
(it "should say FAILED for a failed spec"
(setf (buttercup-spec-status spec) 'failed)
(let ((buttercup-reporter-batch--failures nil))
+ (buttercup-reporter-batch 'spec-started spec)
(buttercup-reporter-batch 'spec-done spec))
(expect (buttercup-output) :to-equal
- (format " FAILED (%s)\n" (buttercup-elapsed-time-string
spec)))
- )
+ (format " spec FAILED (%s)\n"
+ (buttercup-elapsed-time-string spec))))
(it "should output the failure-description for a pending spec"
(setf (buttercup-spec-status spec) 'pending
(buttercup-spec-failure-description spec) "DESCRIPTION")
(let ((buttercup-reporter-batch--failures nil))
+ (buttercup-reporter-batch 'spec-started spec)
(buttercup-reporter-batch 'spec-done spec))
(expect (buttercup-output) :to-equal
- (format " DESCRIPTION (%s)\n" (buttercup-elapsed-time-string
spec)))
- )
+ (format " spec DESCRIPTION (%s)\n"
+ (buttercup-elapsed-time-string spec))))
(it "should throw an error for an unknown spec status"
(setf (buttercup-spec-status spec) 'unknown)
- [nongnu] elpa/buttercup 60028db 236/340: docs: Clarify the spy lifespan in writing-tests.md, (continued)
- [nongnu] elpa/buttercup 60028db 236/340: docs: Clarify the spy lifespan in writing-tests.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9c4b473 237/340: test: Add missing apostrophe in spec title, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 90654ec 238/340: Update some docstrings, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 178c795 242/340: README: Add '-L .' to test runner example, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup fc4276a 247/340: Make it possible to abort test run cleanly, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup dbcd3d4 256/340: Calculate total test run time with current-time, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c83ba7d 268/340: Extract function buttercup-elapsed-time-string, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 38cfa6f 270/340: Fix spy-on on Emacs 24.3 for symbols that are not fbound, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 81bfed4 272/340: test: Add utility function send-string-to-ansi-buffer, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup cf4eee8 274/340: test: Verify output in the "The batch reporter" suite, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4159111 275/340: test: Verify full line for reporter spec-done tests,
ELPA Syncer <=
- [nongnu] elpa/buttercup fbb790b 278/340: test: Add tests for buttercup-started and buttercup-reporter-batch-color, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d563e18 281/340: test: Add color tests for suite-done, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b910b71 285/340: Extract buttercup--indented-description from the batch reporters, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup e71a40f 287/340: Make sure carriage movement characters are not colorized, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a22fc29 288/340: Bump version: 1.21 → 1.22, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup dde8651 290/340: Add new function buttercup--spec-mark-pending and use it, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c59110b 291/340: test: Extend with-local-buttercup with some key arguments, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d443ecb 293/340: Clarify patterns in bin/buttercup, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4d1acb8 294/340: test: Rewrite buttercup-run tests using spies, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 37223e4 296/340: actions: Run actions on push for all branches, ELPA Syncer, 2021/12/16