mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
mgr/dashboard: npm run e2e:dev
The new command introduced will make developing e2e tests faster, as Protractor will attach to the running development server that was previously started running 'npm start'. Fixes: https://tracker.ceph.com/issues/37291 Signed-off-by: Stephan Müller <smueller@suse.com>
This commit is contained in:
parent
e942c96c2d
commit
01bb4cb1a0
@ -153,6 +153,16 @@ Note:
|
||||
When using docker, as your device, you might need to run the script with sudo
|
||||
permissions.
|
||||
|
||||
Writing End-to-End Tests
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
When writing e2e tests you don't want to recompile every time from scratch to
|
||||
try out if your test has succeeded. As usual you have your development server
|
||||
open (``npm start``) which already has compiled all files. To attach
|
||||
`Protractor <http://www.protractortest.org/>`__ to this process, instead of
|
||||
spinning up it's own server, you can use ``npm run e2e -- --dev-server-target``
|
||||
or just ``npm run e2e:dev`` which is equivalent.
|
||||
|
||||
Further Help
|
||||
~~~~~~~~~~~~
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
"test": "jest --watch",
|
||||
"test:ci": "JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter",
|
||||
"e2e": "ng e2e",
|
||||
"e2e:dev": "ng e2e --dev-server-target",
|
||||
"lint:tslint": "ng lint",
|
||||
"lint:prettier": "prettier --list-different \"{src,e2e}/**/*.{ts,scss}\"",
|
||||
"lint:html": "html-linter --config html-linter.config.json",
|
||||
|
Loading…
Reference in New Issue
Block a user