Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test documentation #658

Merged
merged 1 commit into from
Dec 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,25 @@ To test local changes to Readability.js, you can use the [automated tests](#test

## Tests

Please run [eslint](http://eslint.org/) as a first check that your changes are valid JS and adhere to our style guidelines.
Please run [eslint](http://eslint.org/) as a first check that your changes are valid JS and adhere to our style guidelines:

$ npm run lint

To run the test suite:

$ mocha test/test-*.js
$ npm test

To run a specific test page by its name:

$ mocha test/test-*.js -g 001
$ npm test -- -g 001

To run the test suite in TDD mode:

$ mocha test/test-*.js -w
$ npm test -- -w

Combo time:

$ mocha test/test-*.js -w -g 001
$ npm test -- -w -g 001

## Benchmarks

Expand Down