Skip to content

Commit 90e76c9

Browse files
committed
Move "Running the tests" to Contributing.md
1 parent f633ba4 commit 90e76c9

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Contributing.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ These days the [w3c/web-platform-tests](https://github.com/w3c/web-platform-test
3939

4040
If there is no official test covering the functionality you're after, then you can write your own. You might want to submit a pull request to the web-platform-tests repo too!
4141

42+
## Running the tests
43+
44+
First you'll want to `npm install`. To run all the tests, use `npm test`, which just calls `node test/runner`.
45+
46+
Using `test/runner` directly, you can slice and dice which tests your want to run. Usage is as follows:
47+
48+
```
49+
test/runner --help
50+
Run the jsdom test suite
51+
52+
Options:
53+
-s, --suites suites that you want to run. ie: -s level1/core,1/html,html [string]
54+
-f, --fail-fast stop on the first failed test
55+
-h, --help show the help
56+
-t, --tests choose the test cases to run. ie: -t jquery
57+
```
58+
4259
## Issues
4360

4461
Finally, we have [an active and full issue tracker](https://github.com/tmpvar/jsdom/issues) that we'd love you to help with. Go find something broken, and fix it!

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -294,23 +294,6 @@ window.document.body.appendChild(scriptEl);
294294
// though it originated in Node!
295295
```
296296

297-
## Running the tests
298-
299-
First you'll want to `npm install`. To run all the tests, use `npm test`, which just calls `node test/runner`.
300-
301-
Using `test/runner` directly, you can slice and dice which tests your want to run. Usage is as follows:
302-
303-
```
304-
test/runner --help
305-
Run the jsdom test suite
306-
307-
Options:
308-
-s, --suites suites that you want to run. ie: -s level1/core,1/html,html [string]
309-
-f, --fail-fast stop on the first failed test
310-
-h, --help show the help
311-
-t, --tests choose the test cases to run. ie: -t jquery
312-
```
313-
314297
## Contextify
315298

316299
[Contextify](https://npmjs.org/package/contextify) is a dependency of jsdom, used for running `<script>` tags within the page. In other words, it allows jsdom, which is run in Node.js, to run strings of JavaScript in an isolated environment that pretends to be a browser environment instead of a server. You can see how this is an important feature.

0 commit comments

Comments
 (0)