All Projects → ksocha → cypress-circleci-reporter

ksocha / cypress-circleci-reporter

Licence: MIT license
Cypress test reporter for CircleCI

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cypress-circleci-reporter

cypress-mochawesome-reporter
Zero config Mochawesome reporter for Cypress with screenshots
Stars: ✭ 48 (+29.73%)
Mutual labels:  reporter, cypress
cypress-example-docker-circle-workflows
Cypress + Docker + CircleCI Workflows = ❤️
Stars: ✭ 29 (-21.62%)
Mutual labels:  circleci, cypress
cypress-slack-reporter
A home for various Cypress Plugins
Stars: ✭ 126 (+240.54%)
Mutual labels:  circleci, cypress
Shappar
気軽に投票を【取れる】【見れる】【できる】アプリです。
Stars: ✭ 22 (-40.54%)
Mutual labels:  circleci
angular-workshop
Learning Angular: From component state to NgRx
Stars: ✭ 40 (+8.11%)
Mutual labels:  cypress
googletest-ci
Continuous integration (CI) + Google Test (gtest) + CMake example boilerplate demo
Stars: ✭ 14 (-62.16%)
Mutual labels:  circleci
example-images
CircleCI convenience image examples, generated by https://github.com/circleci/circleci-images, for sending READMEs and example Dockerfiles to Docker Hub via automated builds
Stars: ✭ 31 (-16.22%)
Mutual labels:  circleci
ci-build-trigger
A trigger of bundle update
Stars: ✭ 32 (-13.51%)
Mutual labels:  circleci
cypress-angularjs-unit-test
Unit test Angularjs code using Cypress.io test runner
Stars: ✭ 23 (-37.84%)
Mutual labels:  cypress
docker-coala-base
coala base docker image
Stars: ✭ 20 (-45.95%)
Mutual labels:  circleci
sf-tree-history
Tracking the history of trees in San Francisco
Stars: ✭ 23 (-37.84%)
Mutual labels:  circleci
cypress-browser-permissions
A Cypress plugin to set launched browser preferences including permissions like Geolocation, Notifications, Microphone, etc.
Stars: ✭ 40 (+8.11%)
Mutual labels:  cypress
ci2go
CI2Go is a @circleci client for iPhone, iPad, Apple Watch and Mac.
Stars: ✭ 87 (+135.14%)
Mutual labels:  circleci
future.callr
🚀 R package future.callr: A Future API for Parallel Processing using 'callr'
Stars: ✭ 52 (+40.54%)
Mutual labels:  parallelization
life-after-hate
An intuitive resource map to aid nonprofit Life After Hate staff in finding resources for individuals attempting to disengage from hate groups.
Stars: ✭ 12 (-67.57%)
Mutual labels:  cypress
react-atdd-playground
Template to (deliberate) practice your test-driven development skills.
Stars: ✭ 14 (-62.16%)
Mutual labels:  cypress
cypress-example-circleci-orb
Demo of using the Cypress CircleCI Orb
Stars: ✭ 26 (-29.73%)
Mutual labels:  cypress
wdio-spec-reporter
A WebdriverIO v4 plugin. Reporter that creates 'spec'-style reports
Stars: ✭ 20 (-45.95%)
Mutual labels:  reporter
koshry
Run on CI, Apply Rules on the Build and Get the Result back to the Pull Request.
Stars: ✭ 59 (+59.46%)
Mutual labels:  circleci
testcafe-reporter-cucumber-json
TestCafe reporter to generate json in cucumber format
Stars: ✭ 18 (-51.35%)
Mutual labels:  reporter

cypress-circleci-reporter

CircleCI npm GitHub

Cypress test reporter for CircleCI based on mocha-junit-reporter. Helps with test parallelization.

Requirements

  • Cypress 3.8.3 or newer

Installation

$ npm install cypress-circleci-reporter mocha --save-dev
$ yarn add cypress-circleci-reporter mocha --dev

Usage

After installing the reporter, you'll need to modify your config to use it:

CircleCI config example

run_cypress_tests:
  parallelism: 3        # or any other number that suits your needs
  steps:
    # some previous steps

    - run:
        name: Run cypress tests
        command: yarn cypress run --spec "$(circleci tests glob "./cypress/integration/**/*.spec.js" | circleci tests split --split-by=timings | paste -sd "," -)" --reporter cypress-circleci-reporter

    - store_test_results:
        path: test_results
    - store_artifacts:
        path: test_results

First test run with this config should create and store reports for each test file. These will be used during next runs to determine timings of each test. CircleCI will then split the test files between available containers to speed up the process.

Configuration options

Options can be passed to the reported by adding --reporter-options parameter to the CLI command.

Example: --reporter cypress-circleci-reporter --reporter-options "resultsDir=./results/cypress,resultFileName=result-[hash]"

Parameter Default Effect
project undefined If you use Cypress' project parameter, this should be set to the same value.
resultsDir ./test_results/cypress Name of the directory that reports will be saved into.
resultFileName cypress-[hash] Name of the file that will be created for each test run. Must include [hash] string as each spec file is processed completely separately during each cypress run execution.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].