Skip to content

Commit f711dd0

Browse files
committed
Notes on running focused tests.
1 parent a3f3869 commit f711dd0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

RUNNING_UNIT_TESTS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ Default testing uses DBLIB with TinyTDS.
1717
* $ bundle install
1818
* $ bundle exec rake test ACTIVERECORD_UNITTEST_HOST='my.db.net'
1919

20+
Focusing tests. Use the `ONLY_` env vars to run either ours or the ActiveRecord cases. Use the `TEST_FILES` env variants to focus on specific test(s), use commas for multiple cases. Note, you have to use different env vars to focus only on ours or a core ActiveRecord case. There may be failures when focusing on an ActiveRecord case since our coereced test files is not loaded in this scenerio.
21+
22+
```
23+
$ bundle exec rake test ONLY_SQLSERVER=1
24+
$ bundle exec rake test ONLY_ACTIVERECORD=1
25+
26+
$ bundle exec rake test TEST_FILES="test/cases/adapter_test_sqlserver.rb"
27+
$ bundle exec rake test TEST_FILES_AR="test/cases/finder_test.rb"
28+
```
29+
2030

2131
## Creating the test databases
2232

0 commit comments

Comments
 (0)