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.
playwright-html
Advanced tools
Generates a complete HTML report for your playwright test runs.
npm i -D playwright-html
Add reporter to your playwright.config.ts
configuration file
// playwright.config.ts
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
reporter: [
['playwright-html', {
testFolder: 'tests', // Default: "tests"
title: 'Playwright HTML Report', // Default: "Playwright HTML Report"
project: 'QA Tests', // Default: ""
release: '9.87.6', // Default: ""
testEnvironment: 'DEV', // Default: ""
embedAssets: true, // Default: true
embedAttachments: true, // Default: true
outputFolder: 'playwright-html-report', // Default: "playwright-html-report"
minifyAssets: true, // Default: true
startServer: true, // Default: true
}]
],
}
Then run your tests with npx playwright test
command and you'll see the result in console:
-------------------------------------
⏺ Starting the run with 22 tests
✅ Chromium | Simple test 10
✅ Chromium | More simple test
⛔ Chromium | Wrong image validation
✅ Chromium | Open playwright website many times
✅ Chromium | Simple test 2
✅ Chromium | Simple test
✅ Firefox | More simple test
✅ Firefox | Simple test 10
⛔ Firefox | Wrong image validation
✅ Firefox | Open playwright website many times
✅ Firefox | Simple test 4
✅ Firefox | Simple test
⛔ Firefox | Wrong text validation
⛔ Webkit | More simple test
⛔ Webkit | Wrong image validation
⛔ Webkit | Open playwright website many times
🚫 Webkit | Wrong text validation
⛔ Webkit | Simple test 10
⛔ Webkit | Simple test 3
🚫 Webkit | Simple test 7
🚫 Webkit | Simple test 6
🚫 Webkit | Simple test 4
-------------------------------------
Serving HTML report at http://localhost:8001. Press Ctrl+C to quit.
The port number may change
Open the URL in the browser to see the HTML report
playwright-html is MIT licensed.
FAQs
HTML report for Playwright
We found that playwright-html demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.