Skip to content

Commit

Permalink
circleci changes with docker image and the firefox run
Browse files Browse the repository at this point in the history
  • Loading branch information
Naresh Sekar committed Jul 26, 2020
1 parent 4befc41 commit f4960b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
jobs:
build:
docker:
- image: circleci/node:10-buster-browsers-legacy # Image that supports browser automation using JS
- image: circleci/node:dubnium-stretch-browsers-legacy # Image that supports browser automation using JS
resource_class: small # Specifying the size of the instance that is needed to run the tests
working_directory: ~/project
steps:
Expand All @@ -32,10 +32,12 @@ jobs:
command: |
npm run test
- run:
name: Allure report generation in circleci
name: "Run tests in Firefox"
command: |
npm run report.ci
browser=firefox npm run test
- store_test_results:
path: ./reports/junit
- store_artifacts:
path: ./allure-report
path: ./reports/json
- store_artifacts:
path: ./reports/screenshot
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ linter validate:
npm run lint

npm run lint -- --fix # auto fix

clearValue() - issue
https://github.com/webdriverio/webdriverio/issues/1140#issuecomment-663979205
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"test": "npx wdio run wdio.conf.js",
"lint": "eslint .",
"report": "allure serve reports/allure-results",
"report.ci": "npx allure generate reports/allure-results --clean -o allure-report",
"create.secret": "node ./test/utilities/generatekey.js",
"read.secret": "node ./test/utilities/decryptkey.js"
},
Expand Down

0 comments on commit f4960b0

Please sign in to comment.