GitXplorerGitXplorer
e

cypress-zephyr

public
12 stars
2 forks
11 issues

Commits

List of commits on branch main.
Verified
077513964dba919728ef4ac3fe46f2348436eb2e

Merge pull request #233 from elaichenkov/dependabot/npm_and_yarn/axios-1.7.9

eelaichenkov committed a month ago
Verified
f17f9deb1f8274c956b5cca7e120e97a61b9e1c5

Merge pull request #232 from elaichenkov/dependabot/npm_and_yarn/table-6.9.0

eelaichenkov committed a month ago
Verified
fa6a65a749532f53e94e78c3fb2dbe233c6f4c15

Merge pull request #230 from elaichenkov/dependabot/npm_and_yarn/types/adm-zip-0.5.7

eelaichenkov committed a month ago
Verified
525bdf3501d609f6e729f9998a988e4f74120011

build(deps-dev): bump @types/node from 22.10.0 to 22.10.2

ddependabot[bot] committed a month ago
Verified
2b5622f4be71fc611c7a0cfb56483c4a3d135f89

build(deps): bump cypress from 13.16.0 to 13.16.1

ddependabot[bot] committed a month ago
Verified
0ddca6c0278b9caa39bd6d3700cb839c561dcd64

build(deps): bump axios from 1.7.7 to 1.7.9

ddependabot[bot] 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