Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
mocha-testrail-reporter-plus
Advanced tools
A Testrail reporter for mocha utilising TestRail API
#Testrail Reporter for Mocha
Pushes test results into Testrail system.
$ npm i mocha-testrail-reporter-plus --save-dev
Ensure that your testrail installation API is enabled and generate your API keys. See http://docs.gurock.com/
Run mocha with mocha-testrail-reporter-plus
:
Configure the mocharc.cjs to look like this:
const { createGrep, parseArgs } = require("mocha-testrail-reporter-plus/modules");
const args = parseArgs(process.argv);
const spec = "src/**/*.spec.ts";
module.exports = {
extension: ["ts"],
loader: "ts-node/esm",
spec: spec,
timeout: 100000,
grep: createGrep(args),
...(args["--testrail"] && {
reporter: "mocha-testrail-reporter-plus",
reporterOptions: { includeLastCommit: true, spec: spec, ...args },
}),
};
Mark your mocha test names with ID of Testrail test cases. Ensure that your case ids are well distinct from test descriptions.
it("C123 C124 Authenticate with invalid user", () => {})
it("Authenticate a valid user C321", () => {})
Only passed or failed tests will be published. Skipped or pending tests will not be published resulting in a "Pending" status in testrail test run.
It is possible to use tags for positive or negative matching of tests with the --tags and --excludeTags parameters
it("C321 Authenticate a valid user -@ Smoke,Login", () => {})
--tags Smoke,Development
--excludeTags Production,Bug
For more information about tags refer to Tags system
TESTRAIL_HOST: string domain name of your Testrail instance (e.g. for a hosted instance instance.testrail.net)
TESTRAIL_USERNAME: string user under which the test run will be created (e.g. jenkins or ci)
TESTRAIL_PASSWORD: string password or API token for user
TESTRAIL_PROJECTID: number projet number with which the tests are associated
TESTRAIL_SUITEID: number suite number with which the tests are associated
TESTRAIL_RUNNAME: string run name
Pierre Awaragi, owner of the mocha-testrail-reporter.
FAQs
A Testrail reporter for mocha utilising TestRail API
The npm package mocha-testrail-reporter-plus receives a total of 8 weekly downloads. As such, mocha-testrail-reporter-plus popularity was classified as not popular.
We found that mocha-testrail-reporter-plus demonstrated a not healthy version release cadence and project activity because the last version was released 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.