Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
allure-mocha
Advanced tools
This project implements Allure integration with Mocha framework.
npm i allure-mocha mocha --save-dev
or via yarn:
yarn add allure-mocha mocha --dev
Note that it's recommended to add the following dependencies as well for better user experience:
Either add allure-mocha into mocha.opts:
--reporter allure-mocha
Or pass the same value via commandline / scripts:
mocha -R allure-mocha
If you want to provide extra information, such as steps and attachments, import the allure
object
into your code:
// es-modules
import { allure } from "allure-mocha/runtime";
// or commonjs
const { allure } = require("allure-mocha/runtime");
it("is a test", () => {
allure.epic("Some info");
});
To make tests more readable and avoid explicit API calls, you can use a special extension - ts-test-decorators.
See mocha-allure2-example project, which is already configured to use latest Allure 2 features with decorators support.
@srg-kostyrko for help and assistance.
FAQs
Allure Mocha integration
The npm package allure-mocha receives a total of 9,494 weekly downloads. As such, allure-mocha popularity was classified as popular.
We found that allure-mocha 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.