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

add instructions on running individual tests #6686

Merged
merged 1 commit into from
May 17, 2018
Merged

Conversation

mollymerp
Copy link
Contributor

I have no idea what I'm doing when it comes to bash but this seems to work...

Adds the ability to run individual tests or tests by folder to unit tests, and documents the existing behavior for render tests

cc @ryanhamley

@@ -10,6 +10,11 @@ There are two test suites associated with Mapbox GL JS
- `yarn test` runs quick unit tests
- `yarn run test-suite` runs slower integration tests

To run individual tests:

- Unit tests: `yarn test-unit path/to/file.test.js` where the path begins within the `/test/unit/` directory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just been doing build/run-tap test/unit/path/to/file.test.js. That has the advantage the semi-fragile argument processing stuff in run-tap -- but are there downsides I'm not thinking of?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just that it’s maybe easier to remember because it more closely matches the behavior of running single render tests 🤷‍♀️

@mollymerp mollymerp merged commit 04f5a37 into master May 17, 2018
@mollymerp mollymerp deleted the single-test-docs branch May 17, 2018 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants