Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
mocha-testrail-reporter-tags
Advanced tools
A Testrail reporter for mocha utilising TestRail API
#Testrail Reporter for Mocha
Pushes test results into Testrail system.
$ npm install mocha-testrail-reporter-tags --save-dev
When running the Cypress tests on CI, you need to provide the TestRail server variables through the process (OS) environment variables. The following variables should be set:
TESTRAIL_HOST=
TESTRAIL_USERNAME=
; the user password or API key for the user
; API key is preferred
TESTRAIL_PASSWORD=
; Note: the project ID is not very sensitive value
TESTRAIL_PROJECTID=
; if you use suites, add a suite ID (with S or without)
TESTRAIL_SUITEID=...
Ensure that your testrail installation API is enabled and generate your API keys. See http://docs.gurock.com/
Run mocha with mocha-testrail-reporter-tags
:
$ mocha test --reporter mocha-testrail-reporter-tags
or use a mocha.options file
mocha --opts mocha-testrail.opts build/test
--recursive
--reporter mocha-testrail-reporter-tags
--no-exit
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.
npm run clean
npm run build
npm run test
Acknowledgments
Gleb Bahmutov, owner of the find-test-names repository that was forked.
Pierre Awaragi, owner of the mocha-testrail-reporter.
FAQs
A Testrail reporter for mocha utilising TestRail API
The npm package mocha-testrail-reporter-tags receives a total of 0 weekly downloads. As such, mocha-testrail-reporter-tags popularity was classified as not popular.
We found that mocha-testrail-reporter-tags 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.