forked from technoweenie/acts_as_versioned
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRUNNING_UNIT_TESTS
More file actions
21 lines (12 loc) · 754 Bytes
/
Copy pathRUNNING_UNIT_TESTS
File metadata and controls
21 lines (12 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
== Creating the test database
The default name for the test databases is can be found in the test/lib/database.yml files. By
default the tests will run on sqlite3 but can be changed using and ENV['DB'] variable like postresql,
mysql or even sqlserver.
== Running with Rake
The easiest way to run the unit tests is through Rake. The default task runs all the test cases.
There is even a rake task called test_dbs that will run all test cases for each DB.
== Running by hand
Unit tests are located in test directory. If you only want to run a single test suite,
or don't want to bother with Rake, you can do so with something like:
cd test ; ruby -I "test" versioned_test.rb
Likewise you can just hit Command-R if you are using TextMate.