Merge pull request #7255 from unlikelyzero/instrumented

Add cypress black box code cov instrumentation to ui_next 

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-12-14 16:42:06 +00:00
committed by GitHub
3 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@@ -33,6 +33,7 @@ awx/ui_next/src/locales/
awx/ui_next/coverage/ awx/ui_next/coverage/
awx/ui_next/build awx/ui_next/build
awx/ui_next/.env.local awx/ui_next/.env.local
awx/ui_next/instrumented
rsyslog.pid rsyslog.pid
tools/prometheus/data tools/prometheus/data
tools/docker-compose/Dockerfile tools/docker-compose/Dockerfile

View File

@@ -6,4 +6,5 @@ coverage
build build
node_modules node_modules
dist dist
images images
instrumented

View File

@@ -30,6 +30,7 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/polyfill": "^7.8.7", "@babel/polyfill": "^7.8.7",
"@cypress/instrument-cra": "^1.4.0",
"@lingui/cli": "^2.9.2", "@lingui/cli": "^2.9.2",
"@lingui/macro": "^2.9.1", "@lingui/macro": "^2.9.1",
"@nteract/mockument": "^1.0.4", "@nteract/mockument": "^1.0.4",
@@ -53,6 +54,7 @@
}, },
"scripts": { "scripts": {
"start": "PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts start", "start": "PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts start",
"start-instrumented": "DEBUG=instrument-cra PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts -r @cypress/instrument-cra start",
"build": "INLINE_RUNTIME_CHUNK=false react-scripts build", "build": "INLINE_RUNTIME_CHUNK=false react-scripts build",
"test": "TZ='UTC' react-scripts test --coverage --watchAll=false", "test": "TZ='UTC' react-scripts test --coverage --watchAll=false",
"test-watch": "TZ='UTC' react-scripts test", "test-watch": "TZ='UTC' react-scripts test",