mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
parent
e8f8a1ad1f
commit
bd5b4fe963
@ -116,9 +116,6 @@ HEADLESS=false SLOW_MO=500 npm run unit
|
||||
npm run debug-unit
|
||||
```
|
||||
|
||||
There are also phantomjs tests located under [third_party/phantomjs/test](https://github.com/GoogleChrome/puppeteer/tree/master/third_party/phantomjs). These
|
||||
are used to test `phantom_shim`.
|
||||
|
||||
## Public API Coverage
|
||||
|
||||
Every public API method or event should be called at least once in tests. To ensure this, there's a coverage command which tracks calls to public API and reports back if some methods/events were not called.
|
||||
|
@ -11,7 +11,7 @@
|
||||
"unit": "jasmine test/test.js",
|
||||
"debug-unit": "DEBUG_TEST=true node --inspect-brk ./node_modules/.bin/jasmine test/test.js",
|
||||
"test-doclint": "jasmine utils/doclint/check_public_api/test/test.js && jasmine utils/doclint/preprocessor/test.js",
|
||||
"test": "npm run lint --silent && npm run coverage && npm run test-phantom && npm run test-doclint && npm run test-node6",
|
||||
"test": "npm run lint --silent && npm run coverage && npm run test-doclint && npm run test-node6",
|
||||
"install": "node install.js",
|
||||
"lint": "([ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .) && npm run doc",
|
||||
"doc": "node utils/doclint/cli.js",
|
||||
|
Loading…
Reference in New Issue
Block a user