
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
allure-mocha
Advanced tools
Allure framewok integration for 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:
const { epic } = require("allure-js-commons");
it("is a test", async () => {
await epic("Some info");
});
const { parameter } = require("allure-js-commons");
it("is a test", async () => {
await parameter("parameterName", "parameterValue");
});
The parameter
method may also take the third argument with the hidden
and excluded
options:
mode: "hidden" | "masked"
- masked
replaces the value with *
characters to secure sensitive data, and hidden
hides the parameter from report.
excluded: true
- excludes the parameter from the history.
import { parameter } from "allure-js-commons";
it("is a test", async () => {
await parameter("parameterName", "parameterValue", {
mode: "hidden",
excluded: true,
});
});
To make tests more readable and avoid explicit API calls, you may use a special extension - ts-test-decorators.
mocha-allure-example - a minimal setup for using Mocha with Allure.
FAQs
Allure Mocha integration
The npm package allure-mocha receives a total of 23,789 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.