|
1 | 1 |
|
2 | 2 | = SQL Server Testing Setup |
3 | 3 |
|
4 | | - 1) $ bundle install |
5 | | - 2) |
| 4 | + 1) Clone adapter http://github.com/rails-sqlserver/2000-2005-adapter |
| 5 | + 2) Switch to remote tracking branch "3.0.0.beta1" or the latest beta version. |
| 6 | + 3) Set the ARSQLSERVER_SOURCE environment variable with the path of this repo. |
6 | 7 |
|
7 | 8 | = Arel Testing Setup |
8 | 9 |
|
9 | | -You should have both rails and the adapter cloned to your typical repo folder. Let's say this |
10 | | -would be ~/repos referred to as REPOS. As of current make sure your rails checkout is at master |
11 | | -and the sqlserver adapter on the "3.0.0.beta1" topic branch. Make sure to remote track that |
12 | | -origin topic branch. It's typically good practice to do your work on a local branch of that |
13 | | -remote tracking branch. |
| 10 | + 1) Clone our fork of Arel. http://github.com/rails-sqlserver/arel |
| 11 | + 2) Switch to remote tracking branch "sqlserver" |
| 12 | + 3) Set the AREL_SOURCE environment variable with path of this repo. |
14 | 13 |
|
15 | | -In your environment set RAILS_SOURCE & ARSQLSERVER_SOURCE to the full path of your local repos |
16 | | -for each of rails and the adapter above. You should now be able to run "bundle install" from |
17 | | -this project root. From here you can start testing, but it is best practice to use the |
18 | | -"bundle exec ..." commands. For instance: |
| 14 | += Rails |
19 | 15 |
|
20 | | - $ bundle exec rake spec:sqlserver |
| 16 | + 1) Clone rails. |
| 17 | + 2) Creat a local topic branch, maybe something like sqlserver_3.0.0.beta |
| 18 | + 3) Apply the following diff, till we push this upstream. http://gist.github.com/443568 |
| 19 | + 4) Set the RAILS_SOURCE environment variable with the path of this repo. |
| 20 | + |
| 21 | += Testing Last Steps And Notes |
| 22 | + |
| 23 | +So bundler manages the dependencies now and if you have set the correct environment |
| 24 | +variables then all dependency paths for development should be resolved. It is now best to |
| 25 | +run "bundle install" first from your Arel, then to the adapter repo. Now you should be able |
| 26 | +to run "bundle exec rake spec:sqlserver" in Arel to run tests. Since we put bundler as |
| 27 | +a development dependency in the adapter, all you need to do is run "rake test". |
| 28 | + |
| 29 | +Remember you have to set an environment variable for the DSN of the adapter, see the ODBC |
| 30 | +connection information for details. Lastly, it is typically good practice to do your work |
| 31 | +on a local branch of our remote tracking branch. |
21 | 32 |
|
22 | 33 |
|
23 | 34 |
|
|
0 commit comments