| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b01854d commit d759d4e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,23 +136,35 @@ $ git fetch upstream | |||
| 136 | 136 | $ git rebase upstream/master | |
| 137 | 137 | ``` | |
| 138 | 138 | ||
| 139 | - | ||
| 140 | 139 | ### Step 5: Test | |
| 141 | 140 | ||
| 142 | 141 | Bug fixes and features **should come with tests**. Add your tests in the | |
| 143 | 142 | `test/parallel/` directory. For guidance on how to write a test for the Node.js | |
| 144 | 143 | project, see this [guide](./doc/guides/writing_tests.md). Looking at other tests | |
| 145 | 144 | to see how they should be structured can also help. | |
| 146 | 145 | ||
| 146 | + To run the tests on Unix / OS X: | ||
| 147 | + | ||
| 147 | 148 | ```text | |
| 148 | 149 | $ ./configure && make -j8 test | |
| 149 | 150 | ``` | |
| 150 | 151 | ||
| 152 | + Windows: | ||
| 153 | + | ||
| 154 | + ```text | ||
| 155 | + > vcbuild test | ||
| 156 | + ``` | ||
| 157 | + | ||
| 158 | + (See the [BUILDING.md](./BUILDING.md) for more details.) | ||
| 159 | + | ||
| 151 | 160 | Make sure the linter is happy and that all tests pass. Please, do not submit | |
| 152 | 161 | patches that fail either check. | |
| 153 | 162 | ||
| 154 | - Running `make test` will run the linter as well unless one or more tests fail. | ||
| 155 | - If you want to run the linter without running tests, use `make lint`. | ||
| 163 | + Running `make test`/`vcbuild test` will run the linter as well unless one or | ||
| 164 | + more tests fail. | ||
| 165 | + | ||
| 166 | + If you want to run the linter without running tests, use | ||
| 167 | + `make lint`/`vcbuild jslint`. | ||
| 156 | 168 | ||
| 157 | 169 | If you are updating tests and just want to run a single test to check it, you | |
| 158 | 170 | can use this syntax to run it exactly as the test harness would: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments