jorgenschaefer / emacs-buttercup

Behavior-Driven Emacs Lisp Testing
GNU General Public License v3.0
360 stars 44 forks source link

Tests don't have expect is valid? #151

Closed conao3 closed 4 years ago

conao3 commented 4 years ago

Hi! I found the below test passed.

(describe "A suite"
  (it "contains a spec with an expectation"
    (eq t t)))
$ make test
cask exec buttercup -L .
Running 1 specs.

A suite
  contains a spec with an expectation (0.91ms)

Ran 1 specs, 0 failed, in 0.0 seconds.

So I have questions.

snogge commented 4 years ago

Any spec with no asserts (and no other errors) will be considered as PASSED. Note that

(describe "A suite"
  (it "contains a spec with an expectation"
    (eq t nil)))

should also pass.

Please close the issue if you feel this answer is enough.

conao3 commented 4 years ago

Good, thanks!!