Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(832)

Unified Diff: third_party/WebKit/Source/devtools/readme.md

Issue 2462153003: DevTools: Automagically detect user compiled content shell in npm test (Closed)
Patch Set: minor addition to readme Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/scripts/npm_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/readme.md
diff --git a/third_party/WebKit/Source/devtools/readme.md b/third_party/WebKit/Source/devtools/readme.md
index 7f0f34d30f0a9acbe20084248eed1f8f2f255674..92b3855a72e49bab8f0cc978651ad981488310d7 100644
--- a/third_party/WebKit/Source/devtools/readme.md
+++ b/third_party/WebKit/Source/devtools/readme.md
@@ -37,6 +37,20 @@ The frontend is available through a git subtree mirror on [chromium.googlesource
* [awesome-chrome-devtools](https://github.com/paulirish/awesome-chrome-devtools): recommended tools and resources
* Contributing to DevTools: [bit.ly/devtools-contribution-guide](http://bit.ly/devtools-contribution-guide)
+### Testing
+
+Basic:
+* `npm test` - builds devtools and runs all inspector layout tests
+
+> Note: If you're using a full chromium checkout and compiled content shell in out/Release, then `npm test` uses that. Otherwise, with only a front-end checkout (i.e. cloning from GitHub), then `npm test` will fetch a previously compiled content shell from the cloud (and cache it for future test runs).
+
+Advanced:
+* `npm test -- --fetch-content-shell` - even if you're using a full chromium checkout and have a compiled content shell, this will fetch a pre-compiled content shell. This is useful if you haven't compiled your content shell recently.
+* `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). You can use "-d" as a shorthand for "--debug-devtools".
+* `npm run test:build` - only builds devtools (in debug mode)
+* `npm run test:run` - only runs devtools tests
#### Development
* All devtools commits: [View the log], [RSS feed] or [@DevToolsCommits] on Twitter
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/scripts/npm_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698