GitXplorerGitXplorer
e

cypress-zephyr

public
12 stars
2 forks
11 issues

Commits

List of commits on branch main.
Verified
326ff8312f8b0cc79987332680f643106fd07bb8

Merge pull request #241 from elaichenkov/dependabot/npm_and_yarn/cypress-13.17.0

eelaichenkov committed 18 days ago
Verified
1d6354b0a94037a66ffe6bd2b40783404740b010

Merge pull request #240 from elaichenkov/dependabot/npm_and_yarn/mocha-11.0.1

eelaichenkov committed 18 days ago
Verified
d698e4213e5c370a5a8012e909995573584f5ca3

build(deps): bump cypress from 13.16.1 to 13.17.0

ddependabot[bot] committed a month ago
Verified
59f550c4eff322c7d4bc82ad16423760def08f84

build(deps): bump mocha from 10.8.2 to 11.0.1

ddependabot[bot] committed a month ago
Verified
5d473189a09368fbd243df11f31e2d5f0372c3c6

Merge pull request #237 from elaichenkov/dependabot/npm_and_yarn/types/node-22.10.2

eelaichenkov committed a month ago
Verified
86728cb3de8490a39ca933c835ce985c1c87f3e6

Merge pull request #234 from elaichenkov/dependabot/npm_and_yarn/cypress-13.16.1

eelaichenkov committed a month ago

README

The README file for this repository.

cypress-zephyr

Description

This is a Cypress plugin that allows you to link your Cypress tests to Zephyr test cases and upload Cypress test results to Zephyr.

Installation

npm install -D cypress-zephyr

Usage

You need to add the following to your cypress.config.ts file:

import zephyrPlugin from 'cypress-zephyr/dist/plugin';

export default defineConfig({
  reporter: 'cypress-zephyr',
  reporterOptions: {
    projectKey: 'HEX', // Jira and Zephyr project key
    authorizationToken: process.env.ZEPHYR_AUTHORIZATION_TOKEN,
  },
  e2e: {
    setupNodeEvents(on, config) {
      zephyrPlugin(on, config);
    },
  },
});

Do not forget to add ZEPHYR_AUTHORIZATION_TOKEN to your environment variables. The token can be generated in Zephyr settings. Read more about it here.

Test case linking

To link your Cypress test to a Zephyr test case you need to add a [R432] tag to your test case title. The tag should contain a test case key.

For example, your test case id in Zephyr is HEX-R432 then you need to add [R432] to your test case title. For instance:

describe('Main page', () => {
  it('[R432] should do something', () => {
    // ...
  });
});

After that you can run your tests as usual and see the results in Zephyr by clicking the link from terminal. The link will be printed after the tests are finished. Something like this:

📋 Zephyr Scale Report details:
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✅ Test cycle HEX-R9374 has been created                                                                                                                                        │
│ 👇 Check out the test result                                                                                                                                                    │
│ 🔗 https://company-x.atlassian.net/projects/HEX?selectedItem=com.atlassian.plugins.atlassian-connect-plugin%3Acom.kanoah.test-manager__main-project-page#!/testPlayer/HEX-R9374 │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Please take a look at the examples for different set up.

Author

Yevhen Laichenkov elaichenkov@gmail.com

License

MIT