Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
cypress-zephyr
Advanced tools
This is a Cypress plugin that allows you to link your Cypress tests to Zephyr test cases and upload Cypress test results to Zephyr.
npm install -D cypress-zephyr
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.
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.
Yevhen Laichenkov elaichenkov@gmail.com
FAQs
Cypress reporter for Zephyr
The npm package cypress-zephyr receives a total of 565 weekly downloads. As such, cypress-zephyr popularity was classified as not popular.
We found that cypress-zephyr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.