You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you would like to contribute a feature or bugfix, thanks! To make sure your fix/feature has a high chance of being added, please read the following guidelines. First, ask on the Gitter, or post a ticket on github issues. Second, make sure there are tests! We will not accept any patch that is not tested. Please read the [`RUNNING_UNIT_TESTS`](RUNNING_UNIT_TESTS.md) file for the details of how to run the unit tests.
186
+
Please contribute to the project by submitting bug fixes and features. To make sure your fix/feature has
187
+
a high chance of being added, please include tests in your pull request. To run the tests you will need to
To run the test suite you can use any of the following methods below. See [RUNNING_UNIT_TESTS](RUNNING_UNIT_TESTS.md) for
193
+
more detailed information on running unit tests.
194
+
195
+
### Dev Container CLI
196
+
197
+
With [Docker](https://www.docker.com) and [npm](https://github.com/npm/cli) installed, you can run [Dev Container CLI](https://github.com/devcontainers/cli) to
198
+
utilize the [`.devcontainer`](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/main/.devcontainer) configuration from the command line.
199
+
200
+
```bash
201
+
$ npm install -g @devcontainers/cli
202
+
$ cd rails
203
+
$ devcontainer up --workspace-folder .
204
+
$ devcontainer exec --workspace-folder . bash
205
+
```
206
+
207
+
From within the container, you can run the tests using the following command:
208
+
209
+
```bash
210
+
$ bundle install
211
+
$ bundle exec rake test
212
+
```
213
+
214
+
_Note: The setup we use is based on the [Rails Dev Container setup.](https://guides.rubyonrails.org/contributing_to_ruby_on_rails.html#using-dev-container-cli)_
215
+
216
+
### VirtualBox & Vagrant
217
+
218
+
The [activerecord-sqlserver-adapter-dev-box](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter-dev-box)
219
+
is a Vagrant/VirtualBox virtual machine that has MS SQL Server installed. However, the
220
+
activerecord-sqlserver-adapter-dev-box uses Vagrant and Virtual Box which will not work on Macs with Apple silicon.
221
+
222
+
### Local Development
223
+
224
+
See the [RUNNING_UNIT_TESTS](RUNNING_UNIT_TESTS.md) file for the details of how to run the unit tests locally.
225
+
226
+
## Community
227
+
228
+
There is a [Gitter channel](https://gitter.im/rails-sqlserver/activerecord-sqlserver-adapter) for the project where you are free to ask questions about the project.
Copy file name to clipboardExpand all lines: RUNNING_UNIT_TESTS.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,8 @@
1
+
# How To Run The Tests Locally
1
2
2
-
# How To Run The Test!
3
+
The following is a description of how to run the tests for the SQL Server adapter on a local environment.
3
4
4
-
This process is much easier than it has been before!
5
-
6
-
## MS SQL SERVER
5
+
## MS SQL Server instance
7
6
8
7
If you don't have easy access to MS SQL Server, you can set up a Vagrant/VirtualBox virtual machine with MS SQL Server. [Here's how](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter-dev-box).
0 commit comments