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.
pwmochawesome
Advanced tools
Using playwright test runner to get info about executed tests, it can generate JSON and HTML with Mochawesome pattern and style. Main goal of this project is to provide an alternative for default reporter for Playwright.
npm install pwmochawesome --save
Configure it inside your playwright config file:
{project folder}/playwright.config.ts
export default defineConfig({
reporter: [['pwmochawesome']]
});
option | default | description |
---|---|---|
outputJSON | false | Defines whether or not to generate a .json file containing the test results |
outputFileName | 'mochawesome.json' | Defines the name of the .json file if it is enabled |
generateHTML | true | Defines whether to generate a report in HTML |
reportDir | 'mochawesome-report' | Determines the name of the folder that will contain the test results |
reportTitle | 'Playwright Mochawesome' | Title that the html report will use |
charts | false | Whether to show charts in html report |
How to pass options to reporter:
{project folder}/playwright.config.ts
export default defineConfig({
reporter: [
[
'pwmochawesome',
{
outputJSON: true,
outputFileName: 'result.json'
}
]
]
});
This project is tested and confirmed to work with @playwright/test: 1.46.1
with typescript. If you have more recent version and this package don't work, please create a bug or contribute with pull request.
Version compatibility:
Playwright Mochawesome Reporter | Mochawesome | Marge |
---|---|---|
2.0.0 | 7.1.3 | 6.2.0 |
FAQs
A playwright custom reporter that integrates with mochawesome reporter
We found that pwmochawesome 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
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.