Skip to content
emacs lisp のためのもうひとつのテストフレームワーク
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.markdown
yatest.el

README.markdown

yatest - yet another testing framework.

First step. Define the test like a following form.

(eval-after-load "yatest"
  '(yatest::define-test my-project my-test-name
     (yatest "simple case of using `my-hoo'."
       (eq 123 (yatest::p "the return value of my-hoo." (my-hoo 321))))))

Next step. Load yatest.el .

M-: (require 'yatest)

Last step. Run test.

 M-x yatest::run
-------------------------
 project? :  my-project
-------------------------
 test? : my-test-name

yatest::run popups the buffer that contains result of the test with fancy faces.

yatest.el provides following forms and commands.

  • yatest::define-test - Defines your test.
  • yatest::p - Output the value in your test.
  • yatest - Define a case of the test.
  • yatest::run - Runs a individual test or all tests of specified project.
You can’t perform that action at this time.