From 2ffe89f049fd624705f81eae115843e7c979a16b Mon Sep 17 00:00:00 2001 From: "Dmitry Kuzin (DevExpress)" Date: Tue, 12 Oct 2021 22:35:13 +0300 Subject: [PATCH] Add testcafe dashboard --- devops-integration.yaml | 3 +++ devops-pull-requests.yml | 5 ++++- package.json | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/devops-integration.yaml b/devops-integration.yaml index d60564bb4d..b6e243f448 100644 --- a/devops-integration.yaml +++ b/devops-integration.yaml @@ -78,6 +78,9 @@ steps: cd $(Build.SourcesDirectory)/survey-library npm run testcafe_ci displayName: "run functional tests" + env: + TESTCAFE_DASHBOARD_AUTHENTICATION_TOKEN: $(TESTCAFE_DASHBOARD_AUTHENTICATION_TOKEN) + TESTCAFE_DASHBOARD_URL: $(TESTCAFE_DASHBOARD_URL) - script: | cd $(Build.SourcesDirectory)/survey-library diff --git a/devops-pull-requests.yml b/devops-pull-requests.yml index cee01333d7..e478d14e72 100644 --- a/devops-pull-requests.yml +++ b/devops-pull-requests.yml @@ -43,4 +43,7 @@ steps: - script: | cd $(Build.SourcesDirectory)/survey-library npm run testcafe_ci - displayName: "run functional tests" \ No newline at end of file + displayName: "run functional tests" + env: + TESTCAFE_DASHBOARD_AUTHENTICATION_TOKEN: $(TESTCAFE_DASHBOARD_AUTHENTICATION_TOKEN) + TESTCAFE_DASHBOARD_URL: $(TESTCAFE_DASHBOARD_URL) diff --git a/package.json b/package.json index 68bb53a69b..0d37d9186e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "test": "karma start ./build-scripts/karma.conf.js", "testcafe": "concurrently \"http-server --silent\" \"testcafe -c 4 -q chrome testCafe/ --selector-timeout 1500 --reporter minimal\"", "testcafe_file": "concurrently \"http-server --silent\" \"testcafe chrome testCafe/components/popup.ts --selector-timeout 1500 --reporter minimal\"", - "testcafe_ci": "http-server --silent & testcafe -q chrome:headless testCafe/ --reporter minimal", + "testcafe_ci": "http-server --silent & testcafe -q chrome:headless testCafe/ --reporter minimal,dashboard", "testcafe_sauce": "testcafe \"saucelabs:Chrome@56.0:Windows 10\" testCafe/", "release": "standard-version --message \"Release: %s [skip ci]\" ", "build_core_dev": "webpack --config ./build-scripts/survey-core/webpack.config.js --env.buildType dev", @@ -113,7 +113,8 @@ "standard-version": "^8.0.1", "style-loader": "^1.2.1", "surveyjs-doc-generator": "git+https://github.com/surveyjs/surveyjs-doc-generator.git", - "testcafe": "^1.14.0", + "testcafe": "^1.16.0", + "testcafe-reporter-dashboard": "^0.2.4-rc.1", "ts-jest": "^26.1.1", "ts-loader": "^8.0.15", "ts-node": "3.3.0",