Project

General

Profile

Actions

Patch #226

closed

A test suite that runs all tests

Patch #226: A test suite that runs all tests

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

Status:
Closed
Priority:
Normal
Assignee:
-
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.


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

Updated by Matt Jones over 19 years ago Actions #1

Auto test suite

Updated by Matt Jones over 19 years ago Actions #2

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.

Updated by Matt Jones over 19 years ago Actions #3

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.

Updated by Jean-Philippe Lang over 19 years ago Actions #4

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

Updated by Matt Jones over 19 years ago Actions #5

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

Updated by Jean-Philippe Lang almost 19 years ago Actions #6

  • Status changed from New to Closed
Actions

Also available in: PDF Atom