Skip to content
Newer
Older
100644 28 lines (16 sloc) 840 Bytes
db045db @dhh Initial
dhh authored
1 == Running with Rake
2
3 The easiest way to run the unit tests is through Rake. The default task runs
b451de0 @spastorino Deletes trailing whitespaces (over text files only find * -type f -ex…
spastorino authored
4 the entire test suite for all classes. For more information, checkout the
db045db @dhh Initial
dhh authored
5 full array of rake tasks with "rake -T"
6
7 Rake can be found at http://rake.rubyforge.org
8
9 == Running by hand
10
ab2f2b2 @calavera prevent rake test to run the test suite three times when ENV['TEST'] …
calavera authored
11 To run a single test suite
db045db @dhh Initial
dhh authored
12
ab2f2b2 @calavera prevent rake test to run the test suite three times when ENV['TEST'] …
calavera authored
13 rake test TEST=path/to/test.rb
db045db @dhh Initial
dhh authored
14
ab2f2b2 @calavera prevent rake test to run the test suite three times when ENV['TEST'] …
calavera authored
15 which can be further narrowed down to one test:
16
17 rake test TEST=path/to/test.rb TESTOPTS="--name=test_something"
18
19 == Dependency on Active Record and database setup
db045db @dhh Initial
dhh authored
20
81da956 @dhh Docfix (closes #9740) [chuyeow]
dhh authored
21 Test cases in the test/controller/active_record/ directory depend on having
ab2f2b2 @calavera prevent rake test to run the test suite three times when ENV['TEST'] …
calavera authored
22 activerecord and sqlite installed. If Active Record is not in
81da956 @dhh Docfix (closes #9740) [chuyeow]
dhh authored
23 actionpack/../activerecord directory, or the sqlite rubygem is not installed,
24 these tests are skipped.
db045db @dhh Initial
dhh authored
25
26 Other tests are runnable from a fresh copy of actionpack without any configuration.
27
Something went wrong with that request. Please try again.