parseclj icon indicating copy to clipboard operation
parseclj copied to clipboard

Replace ert with buttercup

Open bbatsov opened this issue 8 years ago • 3 comments

This allows you to have much more expressive tests (similar to what you get from jasmine/rspec) and simplifies the travis integration a lot.

https://github.com/jorgenschaefer/emacs-buttercup

The project doesn't have many tests yet, so it's better to do something like this sooner rather than later IMO.

bbatsov avatar Jul 16 '17 08:07 bbatsov

Interesting. I just introduced Cask + ert-runner for a.el and quite liked the experience. While I quite like rspec, I always found that doing rspec-like things outside of Ruby never really felt right. I'm not a fan of Clojure's expectations for instance.

Could you point to a project that uses buttercup and has CI set up?

plexus avatar Jul 16 '17 08:07 plexus

Interesting. I just introduced Cask + ert-runner for a.el and quite liked the experience. While I quite like rspec, I always found that doing rspec-like things outside of Ruby never really felt right. I'm not a fan of Clojure's expectations for instance.

My point is mostly that ert's API is so basic that you end up with some pretty hard to read to tests, especially if they are non-trivial. And things like mocking are not even supported - you have to resort to things like no-flet quite often with it.

Could you point to a project that uses buttercup and has CI set up?

CIDER uses it. The switch simplified both the CI setup and the tests themselves.

bbatsov avatar Jul 22 '17 04:07 bbatsov

autogenerated with https://github.com/MalloZup/doghub: issue inactive since 450 days. Please update the issue or close it

MalloZup avatar Aug 05 '19 21:08 MalloZup