Project

General

Profile

Actions

Patch #226

closed

A test suite that runs all tests

Added by Matt Jones over 17 years ago. Updated almost 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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.


Files

manual_test_suite.rb (2.28 KB) manual_test_suite.rb Matt Jones, 2008-02-03 11:01
auto_test_suite.rb (1.32 KB) auto_test_suite.rb Matt Jones, 2008-02-03 11:01
Actions #1

Updated by Matt Jones over 17 years ago

Auto test suite

Actions #2

Updated by Matt Jones over 17 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.

Actions #3

Updated by Matt Jones over 17 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.

Actions #4

Updated by Jean-Philippe Lang over 17 years ago

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

Actions #5

Updated by Matt Jones over 17 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

Actions #6

Updated by Jean-Philippe Lang almost 17 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF