Buttercup is available from MELPA Stable.
Example test suite:
(describe "A suite" (it "contains a spec with an expectation" (expect t :to-be t)))
Suites group tests, and suites can be nested. Contrary to ERT, suites can share set-up and tear-down code for tests, and Buttercup comes with built-in support for mocks in the form of spies. See the package homepage above for a full description of the syntax for test suites and specs.
Buttercup comes with a shell script to run the default discover runner. If used together with cask,
cask exec buttercup will find, load and run test suites in your project.
-pcommand line argument.
buttercup-pendingsignal now takes an argument which is displayed during spec execution. This enables users to provide a visual explanation as to why a spec was skipped.
原文出处: Jorgen Schäfer
原文时间: 2016-01-09 16:30
整理时间: 2016-01-10 23:31
本文由 Hick 整理，转载请保留以上信息;
The articles on this site come from Internet, thanks to all the original authors.
If anything about COPYRIGHT, or LEFT, please contact Emacsist at gmail dot com .