Closed sheerun closed 11 years ago
I would argue with "doesn't require many configuration". RSpec for rails, minitest for others.
"much configuration" of course
Weird matchers (
42.should eq(42)
)
There is a new syntax and you should start using it now:
expect(42).to eq(42)
But I agree recommending rspec for rails and minitest for others.
I don't see such guideline ;)
On Mon, Aug 5, 2013 at 12:19 PM, Jan Dudulski notifications@github.comwrote:
Weird matchers (42.should eq(42))
There is a new syntax and you should start using it now:
expect(42).to eq(42)
But I agree recommending rspec for rails and minitest for others.
— Reply to this email directly or view it on GitHubhttps://github.com/monterail/guidelines/issues/163#issuecomment-22097583 .
I don't see such guideline ;)
You're welcome #170 ;)
Evaluated Alternatives
Rspec, Minitest, Test::Unit, Bacon, Riot, and less popular
Reasoning
Bacon)Riot,Test-Unit)Minitest)less popular)Test::Unit,Bacon,Riot)Acknowledged downsides
42.should eq(42)
). The solution is to usewrong
plugin, which allows you to write verbose tests likeassert { 42 == 42 }
.