mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-03 02:21:05 +08:00
The part that takes a lot of time in running unit tests is actually spinning up the browser and connecting to it. `watch-unittests` command starts the file watcher for Karma test runner which runs the tests on file change. You can use this without `watch` script and by just rebuilding the target. When combined with `watch` command, this enables you to run unit tests instantly after a file change. Bug: none Change-Id: Icd71230b5b455254dc25b4cef5f6ae72c5dbba06 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5012787 Commit-Queue: Simon Zünd <szuend@chromium.org> Auto-Submit: Ergün Erdoğmuş <ergunsh@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org>
71 lines
5.3 KiB
JSON
71 lines
5.3 KiB
JSON
{
|
|
"author": "The Chromium Authors",
|
|
"bugs": {
|
|
"url": "https://bugs.chromium.org/p/chromium/issues/list?can=2&q=component:Platform%3EDevTools%20&sort=-opened&colspec=ID%20Stars%20Owner%20Summary%20Modified%20Opened"
|
|
},
|
|
"description": "Chrome DevTools UI",
|
|
"homepage": "https://devtools.chrome.com",
|
|
"keywords": [
|
|
"devtools",
|
|
"chrome",
|
|
"chromium",
|
|
"blink",
|
|
"debugger"
|
|
],
|
|
"license": "BSD-3-Clause",
|
|
"name": "chrome-devtools-frontend",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ChromeDevTools/devtools-frontend.git"
|
|
},
|
|
"scripts": {
|
|
"auto-debug-e2etest": "npm run build && npm run debug-e2etest --",
|
|
"auto-debug-interactionstest": "npm run build && npm run debug-interactionstest --",
|
|
"auto-debug-unittest": "DEBUG_TEST=1 npm run auto-unittest --",
|
|
"auto-e2etest": "vpython3 third_party/node/node.py --output scripts/test/run_test_suite.js --config=test/e2e/test-runner-config.json --autoninja",
|
|
"auto-e2etest-rdb": "rdb stream -new -realm chromium:public -- npm run auto-e2etest --",
|
|
"auto-e2etest-parallel": "npm run build && npm run e2etest-parallel --",
|
|
"auto-e2etest-parallel-rdb": "rdb stream -new -realm chromium:public -- npm run auto-e2etest-parallel --",
|
|
"auto-interactionstest": "npm run build && npm run interactionstest --",
|
|
"auto-interactionstest-rdb": "rdb stream -new -realm chromium:public -- npm run auto-interactionstest --",
|
|
"auto-screenshotstest": "npm run build && third_party/node/node.py --output scripts/test/run_test_suite.js --config test/interactions/test-runner-config.json --mocha-fgrep '[screenshot]'",
|
|
"auto-screenshotstest-rdb": "rdb stream -new -realm chromium:public -- npm run auto-screenshotstest --",
|
|
"auto-unittest": "vpython3 scripts/test/run_auto_unittests.py --no-text-coverage",
|
|
"auto-unittest-rdb": "rdb stream -new -realm chromium:public -- npm run auto-unittest --",
|
|
"auto-unittest-coverage": "vpython3 scripts/test/run_auto_unittests.py --no-text-coverage --coverage",
|
|
"bake-strings": "npm run collect-strings && vpython3 third_party/node/node.py --output third_party/i18n/bake-strings.js front_end/core/i18n/locales",
|
|
"build": "autoninja -C out/Default",
|
|
"build-release": "autoninja -C out/Release",
|
|
"check": "npm run check-lint && npm run check-loc",
|
|
"check-external-links": "vpython3 third_party/node/node.py --output scripts/check_external_links.js",
|
|
"check-lint": "vpython3 third_party/node/node.py --output scripts/test/run_lint_check_js.mjs && vpython3 third_party/node/node.py --output scripts/test/run_lint_check_css.js",
|
|
"check-lint-js": "vpython3 third_party/node/node.py --output scripts/test/run_lint_check_js.mjs",
|
|
"check-lint-css": "vpython3 third_party/node/node.py --output scripts/test/run_lint_check_css.js",
|
|
"collect-strings": "vpython3 third_party/node/node.py --output third_party/i18n/collect-strings.js front_end",
|
|
"components-server": "vpython3 third_party/node/node.py --output scripts/component_server/server.js",
|
|
"debug-e2etest": "DEBUG_TEST=1 npm run e2etest",
|
|
"debug-interactionstest": "DEBUG_TEST=1 npm run interactionstest",
|
|
"debug-test": "vpython3 third_party/node/node.py --output scripts/npm_test.js --debug-devtools",
|
|
"debug-unittest": "DEBUG_TEST=1 npm run unittest",
|
|
"e2etest": "vpython3 third_party/node/node.py --output scripts/test/run_test_suite.js --config=test/e2e/test-runner-config.json",
|
|
"e2etest-parallel": "vpython3 scripts/test/run_test_suite_parallel.py",
|
|
"eslint-test": "vpython3 third_party/node/node.py --output node_modules/mocha/bin/mocha \"./scripts/eslint_rules/tests/*_test.js\"",
|
|
"build-test": "vpython3 third_party/node/node.py --output node_modules/mocha/bin/mocha \"./scripts/build/tests/*_test.js\"",
|
|
"generate-dark-mode-styles": "vpython3 third_party/node/node.py --output scripts/dark_mode/generate_dark_theme_sheet.js",
|
|
"generate-protocol-resources": "scripts/deps/generate_protocol_resources.py && git cl format --js",
|
|
"install-deps": "scripts/deps/manage_node_deps.py",
|
|
"interactionstest": "vpython3 third_party/node/node.py --output scripts/test/run_test_suite.js --config=test/interactions/test-runner-config.json",
|
|
"perf": "vpython3 third_party/node/node.py --output scripts/test/run_test_suite.js --config=test/perf/test-runner-config.json",
|
|
"prebuild": "gn gen out/Default",
|
|
"setup-dtrun": "cd scripts/devtools_run && npm link",
|
|
"start": "node -e 'console.log(`This script has been removed in favor of --custom-devtools-frontend. For more information, see https://docs.google.com/document/d/1COgCBWWuTh2o-Zbp6h_z0h0LtlJaimaEDsION4RZPxc/edit?usp=sharing`);'",
|
|
"stylelint-test": "vpython3 third_party/node/node.py --output ./node_modules/.bin/mocha \"./scripts/stylelint_rules/tests/*_test.js\"",
|
|
"test": "vpython3 third_party/node/node.py --output scripts/npm_test.js",
|
|
"test-local": "vpython3 third_party/node/node.py --output scripts/npm_test.js --layout-tests-directory=test/webtests/",
|
|
"ts_library-test": "./third_party/typescript/tests/verify_ts_libary.sh",
|
|
"unittest": "vpython3 scripts/test/run_unittests.py --no-text-coverage",
|
|
"watch": "vpython3 third_party/node/node.py --output scripts/watch_build.js",
|
|
"watch-unittest": "vpython3 scripts/test/run_unittests.py --no-text-coverage --karma-args='--auto-watch --no-single-run --restart-on-file-change --auto-watch-batch-delay 250'"
|
|
}
|
|
}
|