Patch #226

A test suite that runs all tests

Added by Matt Jones about 13 years ago. Updated over 12 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

This isn't really a patch. It is just a ruby file that runs all the unit, functional, and integration tests in one suite.
I find it useful to have a test suite, because having to run each test manually discourages me from writing tests.

manual_test_suite.rb Magnifier (2.28 KB) Matt Jones, 2008-02-03 11:01

auto_test_suite.rb Magnifier (1.32 KB) Matt Jones, 2008-02-03 11:01

History

#1 Updated by Matt Jones about 13 years ago

Ah. I had been trying that and Rake was exploding. After
doing some research I found that many people have been
having problems with unit tests and Rake for years. I had
been using upgraded versions of Ruby and Rails on Ubuntu Feisty.

So I tried "rake test" on a fresh install of the
Ubuntu
Gutsy Alpha and it works. I also tried it on Windows 2003
and it works there too.

So anyway, just disregard this patch then

#2 Updated by Jean-Philippe Lang about 13 years ago

'rake test' does the same thing, doesn't it ?

#3 Updated by Matt Jones about 13 years ago

If you like this idea I could clean the code up a bit. I was
going to post this in the forums, but there does not seem to
be an easy way to post code.

#4 Updated by Matt Jones about 13 years ago

Auto test suite

#5 Updated by Matt Jones about 13 years ago

Actually I just realized that it would be better if the code
could automatically find the tests and run them. That way
you wont have to update the suite file.

#6 Updated by Jean-Philippe Lang over 12 years ago

  • Status changed from New to Closed

Also available in: Atom PDF