Update CONTRIBUTING.md with information on how to focus the browser tests on a particular suite when running test:dev. (#14317)

This commit is contained in:
CJ Cenizal 2017-10-05 18:17:05 -07:00
parent 356cfe70b8
commit 78b4727c76

View file

@ -273,6 +273,9 @@ Using `npm run test:dev` initializes an environment for debugging the browser te
npm run test:dev
```
In the screenshot below, you'll notice the URL is `localhost:9876/debug.html`. You can append a `grep` query parameter to this URL and set it to a string value which will be used to exclude tests which don't match. For example, if you changed the URL to `localhost:9876/debug.html?query=my test` and then refreshed the browser, you'd only see tests run which contain "my test" in the test description.
![Browser test debugging](http://i.imgur.com/DwHxgfq.png)
### Unit Testing Plugins