elpasync pushed a change to branch elpa/buttercup. at 108d229 Fix property comparisons in unit tests.
This branch includes the following new commits: new e10955c Initial commit. new fd70ccf Specs are now structs. new c5a9f26 Add first set of unit tests. new f44e65d Unit tests for define-matcher and apply-matcher. new 821cfa6 Comment separating built-in matchers from the rest. new 36522b9 Add .travis.yml new 5d369cd Do not use emacs-snapshot from EVM, that's slow. new 07b1ee6 Add compatibility definition for define-error new 89c00aa Makefile: Make the emacs command configurable new a7d9813 Add cl-defstruct compatibility alias. new d580e5c Add build status badge. new 67df4b1 Remove Cask file. It's unused. new 1882d6f Comment cleanup. Also, make elisp lexically scoped. new 3772ad5 Use eval-region instead of eval-buffer. new 3637e3d Add more extensive matcher tests to the README. new 695e444 buttercup-markdown-runner: Use setq, not setq-local. new 77d1dac Test buttercup-suite-add-child. new 683614d Tests for the describe macro. new d3cd12a Tests for the buttercup-describe function new 764d6aa Tests for the it macro and buttercup-it function. new 7e20ff1 ROADMAP.md: New file. new a277b0e Setup and teardown: before-each, after-each, before-all, after-all new 0221830 Remove setup and teardown from ROADMAP.md. new 8e30284 Disabled suites, pending specs. new 5db449f Spies new 8aa87c8 Spy :and-call-through new ba40ff8 Spies: :and-return-value new 7cdb219 Spies: :and-call-fake new 7526198 Spies: :and-throw-error new 548df0d Spies: Other tracking properties. new 20b87dd Refactoring of spy-on to be more concise and DRY. new b1bcedc Add docstrings where missing. new c1abc2a Refactoring of spy context accessors. new d5572a6 Refactoring of the cleanup code. new f314737 ROADMAP.md: Remove spies section, as it is done. new b75b3e9 Add a discovery test runner. new 4bd24e7 ROADMAP cleanup. new 7eecb96 Remove commented-out backtrace code from buttercup.el. new 55b87ec Removed ROADMAP.md. This is now tracked in issues. new 993ddda Add .gitignore new 1dcd2cd Prepare release, add bumpversion and pkg.el new f046eef Bump version: 0.1 → 1.0 new bb31c85 Edebugable. new 537b729 Merge pull request #6 from myeffort/master new 3483449 Typo fix. new bcaa087 Add buttercup executable to run buttercup tests more easily. new 7250873 Rename patch to minor in bumpversion.cfg new 7fa79c4 Expand and improve the package commentary. new bf0e1da Rename tar target to release and add compile and clean targets. new 13c463a Add more extensive usage instructions to the README. new 329d2f9 Add autoload markers to test runners. new c783259 Add MELPA Stable badge. new 3deb9a4 Test discovery: Ignore files in dot directories. new 84002e9 Add parent relations to specs and suites. new 79286cf Test for the batch reporter. new bdc3721 Documentation for the buttercup-reporter variable. new 0c5cc32 The buttercup-suites-total-specs-defined function. new 562cdb0 The buttercup-suite-full-name function. new 4f68f0b The buttercup-spec-full-name function. new 162b862 The buttercup--funcall function. new 638a836 The batch reporter now displays failures and stack traces. new 17f3cf5 Remove error in favor of failed. new ef7b730 Various improvements of the batch reporter. new a55a638 More and better tests for the batch reporter. new 3a0a58f Test buttercup--print. new c61a69a A rudimentary interactive reporter. new 8c486e6 Move print settings to the batch reporter where they belong. new 182a974 Pending specs and disabled suites. new c7df9f6 Add 24.5. new b3bb12a buttercup-run-discover: Fix regexp. new 26f8117 Rename buttercup-test.el and move it to the right directory. new d6cf530 Clean up the interactive reporter. new 87e0c0d Bump version: 1.0 → 1.1 new f3d6709 Use relative path when testing for dotfiles in current project new d264da3 Merge pull request #17 from Fuco1/master new 68c5ef5 Only load .el files during discovery. new 512b82b Rework documentation to make the readme more concise. new 0f3eb63 Show actual function arguments when a spy fails. new 444716b Handle windows better in interactive runs. new d7ab592 Bump version: 1.1 → 1.2 new 14718c0 Use the new Travis infrastructure new 238bfa8 Support --pattern command line argument new d00c164 Display description for pending specs new 5cbd468 Bump version: 1.2 → 1.3 new 357e73b Remove debug message new e1f71ac Bump version: 1.3 → 1.4 new 673f84d Add assume form to cancel tests if conditions fail new 2aa840c Merge pull request #40 from lunaryorn/assume-form new 25cb350 Rename docs to be more easily understandable new 16e3530 Also update Makefile to the new docs names new afbaae1 Document file names for test discovery new f593486 Use pattern _ not t in pcase, as t is deprecated new 6d96ea3 Add format specifier to error call with argument new 19f256e Update copyright / license information for some details new ea8effb Add the :var argument to describe new e6fd5f5 Track pending specs separately new 6c11d8e Debian and Ubuntu installation instructions new 0a889e2 Merge pull request #43 from spwhitton/apt-get new 23472e9 :to-match: Show correct error messages new 3ef90b4 :to-match: Don't switch t/nil! new a1c7bff Do not ignore errors when after-each succeeds new 657acef Bump version: 1.4 → 1.5 new 553ff83 Add :to-have-same-items-as to compare lists as sets. new 06c9699 Merge pull request #58 from Fuco1/to-equal-as-set new a6d9bde Support more emacs parameters useful for pre-test initialization new ba8cd05 Merge pull request #59 from immerrr/add-other-emacs-params new cc52444 feature/windows-bin-support: support for windows new b120003 Merge pull request #60 from howdoicomputer/feature/windows-bin-support new abf2abe Exclude hidden files and dirs in test root new cef9988 Merge pull request #61 from spwhitton/fix-regexp new ab2a558 Add projectile integration info to Readme new 5db07c9 Merge pull request #63 from ebpa/patch-1 new 68692d9 Update Travis configuration instructions new 794afbf Merge pull request #65 from DamienCassou/patch-1 new ce75b50 Report load errors in buttercup-run-discover new 07c525e Merge pull request #68 from ebpa/report-load-errors new a05fdcb Colorize output new 677d6d3 Merge pull request #70 from xendk/color-output new f60ed2a Bump version: 1.5 → 1.6 new d5c9a19 Make --with-cleanup public so spies can be used without specs new 2b5f53d [Fix #72] Add buttercup-minor-mode new 77f0c74 Fix :to-have-same-items-as (fix #80) new 11f072f Merge pull request #81 from DamienCassou/fix-to-have-same-items-as new 54696b0 Merge pull request #78 from Fuco1/feature/buttercup-minor-mode new ed649d7 Merge pull request #76 from DamienCassou/make-buttercup--with-cleanup-public new d8dc80d Bump version: 1.6 → 1.7 new 7e8898b Implement :to-have-been-called-times matcher (close #90) new b6deeff Set Emacs 24.3 as minimum and clean outdated code (close #89) new 0124cc4 Signal an error when ":to-throw" is used on a non-function (#97) new ca09040 Improve the Makefile new 46882f8 Show a message about duplicate spec names new 39c7d8c Allow ERT "should" and similar to work with buttercup new e8140aa Implement configurable stack traces new a535e51 Fix a logic error in spy tests new 6ad9565 Fix several edge cases in "spy-on" new e6f97d0 Release 1.8 new e26ea54 Let spy-on :and-return-value work with lists and symbols (close #104) new e55e3d8 travis: Test on 25.1 and 25.2 new 389dc43 Fix a problem with reporter tests suppressing failure messages new 07cf64b Run test-buttercup.el before tests in writing-tests.md new c032c8f Exec code blocks in markdown labeled as "emacs-lisp" and "elisp" new 31e765b Do not suppress errors while loading test files new 929a904 Implement closure-based expect macro new b97714d Declare all variables before first use new 20ec520 Rename functions and arguments for closure manipulation new 5d1f338 Move let-binding outside loop for efficiency new 4128f3e Document ERT support in writing-tests.md new 11d7fdc Add "--help" option to buttercup command-line script new ad901b5 Do not modify global match data in matchers new 10e0537 Manually fix bumpversion.cfg new 18a8879 Bump version: 1.8 → 1.9 new c1187b3 Extract function buttercup-suites-total-spces-status new ae606fc Set failure description to empty string for pending specs new 34e12fd Get rid of 60 compile-time warnings out of 97 new 897d0e7 Remove some warnings on test-buttercup.el new 47dd72c Set file local variables for consistent code style new f565eda Extract super-struct buttercup-suite-or-spec new 5458dcc Replace buttercup-*-parents with buttercup-suite-or-spec-parents new 2edeae5 Rewrite buttercup-suite-full-name with a single loop new 25046d3 Rewrite buttercup--update-with-funcall with suite-or-spec functions new 0c1dcda Fix docstring of buttercup--specs-and-suite new 4063f55 Add function buttercup--specs new bcaa7f0 Use buttercup--specs where possible new 62c416a Rewrite the pattern loop of buttercup-run-discover new 77367d3 Change shebang to use /usr/bin/env new bbbf692 Fix more compile warnings. new 6848057 Bump version: 1.9 → 1.10 new 85aebcd Fix issue #121 new 8d27bb9 Bump version: 1.10 → 1.11 new 4106adc Add release script new 61ebe91 Update README.md new 636db47 Typo fixes (#126) new 39d625c Bump version: 1.11 → 1.12 new 45f40c7 Restore obsoletion version for buttercup-*-parents new 8034597 Replace remaining calls to obsolete buttercup-*-parents new 6330610 Add more markdown running functions new 9b6cc79 travis: Test on 26.1 new 3d3aff9 Set file local code-style variables in test-buttercup.el new acccc0f Modify xdescribe to keep all contained specs as pending new f57036f Update the disabled/pending sections of writing-tests.md new 553529f Remove obsolete buttercup-xdescribe new d07dbf3 Merge pull request #129 from snogge/fix-obsolete-aliases new bc13b53 Merge pull request #133 from snogge/fix-specs-in-pending-suites new 5821cd0 Merge pull request #131 from snogge/markdown new ca3ba8e Merge pull request #130 from snogge/travis-update new 079ef3e Bump version: 1.12 → 1.13 new 0d742b0 Set failure-description for pending specs new 1998ae3 Drop unused variable in buttercup--disable-specs new edcffde Add start and end times to each suite or spec new 406c41d Print elapsed time for each spec new a394fea Bump version: 1.13 → 1.14 new 7cea4c6 Test buttercup-run new b410c78 Separate return code from reporter new 4089d5f Bump version: 1.14 → 1.15 new 1850253 Remove duplicate buttercup-color declaration new 1c50a80 Fix the buttercup-run tests new 810fa6f Bump version: 1.15 → 1.16 new 075b318 Add support for :var* new 4459f37 Add test for :var* argument new 1c762a5 Add documentation for :var and :var* new 2bc55fe Add emacs-26.2 to CI config new 9b230dc Fix the "should print the elapsed time for all specs" test new 159fe3c Really fix the buttercup-run tests new debe7cc Merge pull request #144 from kevinjfoley/support-var-star new 9d172a7 Merge pull request #145 from snogge/test-fixes new d2b6692 Bump version: 1.16 → 1.17 new e62ce43 test: Do not leak functions from "The Spy " test suite new 8628d45 Merge pull request #147 from snogge/suite-local-function new c2d75e9 Bump version: 1.17 → 1.18 new c100fad Implement buttercup-suppress-warning-capture new a6f2486 Merge pull request #150 from DarwinAwardWinner/suppress-warning-redirect new c994aea Add LICENSE file. new d9ce620 Merge branch 'license-file' into master new 8b3cfad Update test for new warning capture suppression behavior new 1567c03 Add emacs-26.3 to CI config new ff16814 travis: Always test on xenial new bd851d4 Merge pull request #155 from snogge/travis-xenial new 246ddd7 Merge pull request #152 from DarwinAwardWinner/suppress-warning-redirect new 49f01fc Merge branch 'master' into test-emacs-26.3 new 9408a72 Merge pull request #154 from DarwinAwardWinner/test-emacs-26.3 new a019f7a Use spy-calls-count as appropriate new 26e2ded Rename some innacurate references to "fake" functions new 25462dd Record calls to spied-on functions that throw errors new bf48137 Add some tests for error-call recording new fc19598 Add examples for checking return value and thrown signal of a spy new 6590360 Fix a few typos and other small errors new bb3fba3 Properly handle return values and thrown signals in spies new a970d10 Implement spy-calls-count-returned and spy-calls-count-errors new 6cf8041 Update writing-tests.md to describe new spy context structs new 8a28489 Bump version: 1.18 → 1.19 new 0e40587 Tweak the spy-contexts to be more backward compatible new 8d91893 Optimize spy-calls-count-errors and spy-calls-count-returned new c720cef Merge pull request #146 from DarwinAwardWinner/spy-record-errors new 9b87afc Merge branch 'snogge/spy-context-tweaks' new b2edd35 Change: (buttercup-define-matcher-for-binary-function) Add newlines new 60028db docs: Clarify the spy lifespan in writing-tests.md new 9c4b473 test: Add missing apostrophe in spec title new 90654ec Update some docstrings new 818c150 docs: Clarify the difference between :var and `let' new d8b596c Merge branch 'doc-improve' new b297b1d Revert "Change: (buttercup-define-matcher-for-binary-function) Add newlines" new 178c795 README: Add '-L .' to test runner example new 83141f7 Raise an error if spy-on is used in the wrong context new d8ab09d Update documentation for the --pattern option in running-tests.md new 243b71f Merge branch 'spy-scope-error' new adba24e Bump version: 1.19 → 1.20 new fc4276a Make it possible to abort test run cleanly new e7e5d22 Add an option to immediately abort Buttercup run if a test fails new dcc2638 Revert "Add an option to immediately abort Buttercup run if a test fails" new 7903e1a Revert "Make it possible to abort test run cleanly" new 3734152 Make buttercup-describe return the created suite object new 9b30c75 Make buttercup-x?it and buttercup-suite-add-child return spec new 521b71b Add tests to ensure pending spec state is not overwritten new 8271c27 Only update spec state if it is worse or equal new 966798f Correct all docstrings to pass checkdoc new dbcd3d4 Calculate total test run time with current-time new b520dcf Print test run duration in an apropriate unit new 9265f83 Add test for buttercup-suites-total-specs-pending new 8e29f4c Extract buttercup--mark-skipped from buttercup-run-discover new 1fd0d8b Set state pending for skipped specs for correct initial count new f3c2b00 test: Move with-local-buttercup to top of file new b298517 test: Mark some local function arguments as unused new 0dbd474 Bump version: 1.20 → 1.21 new b360e35 test: Add tests for buttercup--mark-skipped new 1c9c82f Fixed misspelling in the documentation new 360953b test: Only run tests found in the tests/ directory new 669ca99 test: Split make rule test into test-buttercup and test-docs new c83ba7d Extract function buttercup-elapsed-time-string new 6655f77 Update test run duration output in buttercup-reporter-batch new 38cfa6f Fix spy-on on Emacs 24.3 for symbols that are not fbound new 0e6c09e Correct the assume docstring new 81bfed4 test: Add utility function send-string-to-ansi-buffer new 25bc00d test: Set up suite "The batch reporter" to use fake terminal new cf4eee8 test: Verify output in the "The batch reporter" suite new 4159111 test: Verify full line for reporter spec-done tests new 9b94921 test: Add tests for buttercup-reporter-batch buttercup-done handling new 2040757 test: Add reporter test for buttercup-started with pending specs new fbb790b test: Add tests for buttercup-started and buttercup-reporter-batch-color new 5c9f80d test: Add color tests for buttercup-suite-started and -done new 2be9ad3 test: Add color tests for spec-done new d563e18 test: Add color tests for suite-done new 459bffb test: Add color tests for buttercup-done new a91f282 Handle multiline spec descriptions in buttercup-reporter-batch-color new 532d082 test: Fix tab stops in send-string-to-ansi-buffer for Emacs 24.3 new b910b71 Extract buttercup--indented-description from the batch reporters new 8afc407 Switch from to pcase for spec-done in buttercup-reporter-batch-color new e71a40f Make sure carriage movement characters are not colorized new a22fc29 Bump version: 1.21 → 1.22 new d5c3ed5 Switch to Github Actions new dde8651 Add new function buttercup--spec-mark-pending and use it new c59110b test: Extend with-local-buttercup with some key arguments new 41424d5 Add new public function buttercup-mark-skipped new d443ecb Clarify patterns in bin/buttercup new 4d1acb8 test: Rewrite buttercup-run tests using spies new 5752a57 Control errors from buttercup-run with noerror argument new 37223e4 actions: Run actions on push for all branches new 50c7fc2 Switch to pcase in spec-done case of buttercup-reporter-batch new dd32cc7 test: Fix "should color-print pending spec count in default color" new 0debeec test: Use with-local-buttercup in more tests new 2d77e18 test: Correct descriptions for some suite-done specs new d41c6dc Extract buttercup-reporter-batch--print-summary new 74e74e2 Extract buttercup-reporter-batch--print-failed-spec-report new 0e94f6e Lift buttercup-done handling into buttercup-reporter-batch new b3acf50 Lift spec-started handling into buttercup-reporter-batch new 52f0bec Make buttercup-colorize treat nil as no color new 24a7bb9 Extract buttercup-reporter-batch--print-spec-done-line new c9addd5 Lift spec-done handling into buttercup-reporter-batch new f1f403b Remove buttercup-reporter-batch-color new d6de872 Improve buttercup-reporter-batch--print-failed-spec-report new 392b99c Extend batch reporters to optionally print sparse reports new a8f4cff test: Correct descriptions for ERT compatibility specs new 995a4f1 Add missing docstrings, correct some other docstrings new fce5fa5 Optionally fail when loading old elc files new 110a9b6 test: Use pretty traceback new f6ab784 test: Test on GNU Emacs 27.1 new a9647cb Bump version: 1.22 → 1.23 new b76ff35 Update buttercup.bat to handle all options new 6c3bb75 Accept a list of regexes in buttercup-mark-skipped new 4d974d2 Use correct function for --stale-file-error new 9dda405 Document use with Eldev new 0e5eae0 Merge pull request #192 from snogge/re-patterns new 62a34c7 Remove elc files in tests on make clean new bef49f5 Remove extra newline in error backtrace new e0b5d9f Correct error message in buttercup--format-stack-frame new a37d1a0 Fix compilation warning about undefined variable. new 315a891 Fix stack frame collection in buttercup--backtrace new 843fa6f Keep the actual variable definition with the reporter new 6ef715f Use buttercup--mark-stackframe to mark the start of test code new 9e1c5c9 test: Add tests for backtrace prints new bd55e2b Add stacktrace style `omit` new b574cb2 test: Fix byte compiler errors and warnings new dacfacc Recognize buttercup--mark-stackframe in buttercup--enclosed-expr new b4e0986 Merge pull request #194 from doublep/eldev-doc new cccdedf Merge pull request #197 from snogge/omit-traceback new 06201f2 Print :to-have-been-called-with args as sexp for consistency new 8b3f7a0 Merge pull request #199 from wasamasa/print-args-as-sexp new f6f9335 test: Add tests for buttercup-run-discovery new 2f24a44 Make formatting of backtrace frames closer to that standard for Emacs new 1de6be4 Bump version: 1.23 → 1.24 new 108d229 Fix property comparisons in unit tests.