Skip to content

Commit 2bdcdb1

Browse files
explain how to run a single ruby test file in CONTRIBUTING.md (#3085)
* explain how to run a single ruby test file in CONTRIBUTING.md * adds how to run a single ruby test
1 parent f0d2913 commit 2bdcdb1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,50 @@
33
1. Install [Yarn](https://yarnpkg.com/)
44

55
2. Run the following commands to set up the development environment.
6+
67
```
78
bundle install
89
yarn
910
```
1011

1112
## Making sure your changes pass all tests
13+
1214
There are a number of automated checks which run on GitHub Actions when a pull request is created.
15+
1316
You can run those checks on your own locally to make sure that your changes would not break the CI build.
1417

1518
### 1. Check the code for JavaScript style violations
19+
1620
```
1721
yarn lint
1822
```
1923

2024
### 2. Check the code for Ruby style violations
25+
2126
```
2227
bundle exec rubocop
2328
```
2429

2530
### 3. Run the JavaScript test suite
31+
2632
```
2733
yarn test
2834
```
2935

3036
### 4. Run the Ruby test suite
37+
3138
```
3239
bundle exec rake test
3340
```
41+
42+
#### 4.1 Run a single ruby test file
43+
44+
```
45+
bundle exec rake test TEST=test/rake_tasks_test.rb
46+
```
47+
48+
#### 4.2 Run a single ruby test
49+
50+
```
51+
ruby -I test test/rake_tasks_test.rb -n test_rake_webpacker_install
52+
```

0 commit comments

Comments
 (0)