@@ -11,55 +11,13 @@ assumes you have a DSN setup that matches the name of the default database names
1111
1212== Requirements
1313
14- The following gems need to be installed. Make sure you have gems.github.com as a
15- source. Info here. http://gems.github.com/
16-
17- We use echoe for packagemanagement to rubyforge. Not needed really for the tests
18- but since we need it... you need to install it.
19-
20- * gem install echoe
21- * gem install thoughtbot-shoulda -s http://gems.github.com
14+ * gem install shoulda
2215 * gem install mocha
2316
24- The tests of this adapter depend on the existence of rails checkout. All the tests
25- defined by rails are re-used. For this to work the following directory structure
26- is assumed to exist:
27-
28- #{RAILS_ROOT}/vendor/plugins/adapters/sqlserver
29- #{RAILS_ROOT}/vendor/rails/activerecord/test
17+ The tests of this adapter depend on the existence of rails checkout. Make sure
18+ to checkout remotes/origin/2-3-stable, then make sure to export RAILS_SOURCE to
19+ the full path of that repo.
3020
3121Define a user named 'rails' in SQL Server with all privileges granted for the
3222test databases. Use an empty password for said user.
3323
34-
35- == Running with Rake
36-
37- The easiest way to run the unit tests is through Rake. Either run "rake test" which
38- defaults to ODBC mode or being mode specific using either "rake sqlserver:test:adonet"
39- or "rake sqlserver:test:odbc". For more information, checkout the full array of rake tasks
40- with "rake -T"
41-
42- Rake can be found at http://rake.rubyforge.org
43-
44-
45- == Running with Autotest
46-
47- Using autotest is easy, just run "autotest" and the tests will run continually in the
48- same order as the rake test command. By default autotest will use ODBC connection. If
49- you want to change this you can edit the autotest/sqlserver.rb file and set odbc_mode
50- to false.
51-
52- Lastly, you can run autotest on just the adapter specific tests with "autotest sqlserver".
53- This will continuously run ONLY the SQL Sever specific behavior tests which are much
54- quicker to run than the entire active record test suite.
55-
56-
57- == Running by hand
58-
59- Unit tests are located in test directory. If you only want to run a single test suite,
60- you can do so with:
61-
62- rake test_sqlserver TEST=base_test.rb
63-
64- That'll run the base suite using the SQLServer-Ruby adapter.
65-
0 commit comments