Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@mmisty/cypress-allure-adapter
Advanced tools
cypress allure adapter to generate allure results during tests execution
This is allure adapter for cypress providing realtime results. It is useful when using Allure TestOps - so you can watch tests execution.
Install adapter by npm i -D @mmisty/cypress-allure-adapter
Setup:
Update support: add allureAdapterSetup();
in your support/index.ts
file (or e2e.ts
file)
import { allureAdapterSetup } from '@mmisty/cypress-allure-adapter';
allureAdapterSetup();
Update plugins: add configureAllureAdapterPlugins(on, config);
into your plugins file:
// cypress.config.ts
import { configureAllureAdapterPlugins } from '@mmisty/cypress-allure-adapter/plugins';
export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
configureAllureAdapterPlugins(on, config);
return config;
},
// ...
}
});
Update environment variables: in cypress.config.ts
or in your env files:
allure
=> true
- will enable reportingallureResults
=> allure-results
- path to allure-resultsallureCleanResults
=> true
- will remove allure results on cypress startallureSkipCommands
=> wrapNoLog,sync
- commands that will not be logged, separated with commaenv: {
allure: 'true',
allureResults: 'allure-results',
allureCleanResults: 'true',
allureSkipCommands: 'wrapNoLog,sync', // separated comma
//...
}
no need to setup types - should be done automatically
If you are using Cypress action 'after:spec' in plugins you can use the following configuration to have video attached to tests:
// cypress.config.ts
import { configureAllureAdapterPlugins } from '@mmisty/cypress-allure-adapter/plugins';
export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
const reporter = configureAllureAdapterPlugins(on, config);
on('after:spec', (spec, results) => {
// your code in after spec
reporter.afterSpec({ results });
})
return config;
},
// ...
}
});
todo
script | description |
---|---|
husky:install | install precommit hooks |
lint | lint code |
build | compile typescript by tsconfig.build.json |
test | run all jest tests |
To see debug log run cypress with DEBUG env variable like: DEBUG=cypress-allure* npm run cy:open
Initial version
FAQs
cypress allure adapter to generate allure results during tests execution (Allure TestOps compatible)
The npm package @mmisty/cypress-allure-adapter receives a total of 19,606 weekly downloads. As such, @mmisty/cypress-allure-adapter popularity was classified as popular.
We found that @mmisty/cypress-allure-adapter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.