Chromium Code Reviews
DescriptionDevTools: add "npm test" to run tests by fetching content shells
Running "npm test" from /devtools fetches an uploaded content shell
(which is cached) and runs devtools layout tests.
This allows developers, especially external contributors, to run our tests
without compiling.
API:
* "npm test" - builds devtools and run all inspector layout tests (primary command)
* "npm test -- -f --child-processes=16" - pass in additional flags to the test harness
* "npm test -- inspector/sources inspector/console" - run specific tests
* "npm test -- inspector/cookie-resource-match.html --debug-devtools" - debug a specific test (non-bundled & minified)
* "npm run test:build" - only builds devtools (in debug mode)
* "npm run test:run" - only runs devtools tests
This currently works w/ a full-checkout, but I plan on working
to enable running devtools layout tests w/ only a frontend checkout.
BUG=654486
Committed: https://crrev.com/605fd97ead89705d29fa86c7b9885db159a35f8a
Cr-Commit-Position: refs/heads/master@{#426024}
Patch Set 1 #Patch Set 2 : getContentShellBinaryRelativePath #Patch Set 3 : fix binary path #Patch Set 4 : Fixes #Patch Set 5 : Mac fix #Patch Set 6 : nits #
Total comments: 2
Patch Set 7 : address CL feedback #Patch Set 8 : nits #
Total comments: 4
Messages
Total messages: 14 (6 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||