Playwright 项目
此仓库包含一个最小化的 Playwright Test 设置。
试试看:
# install dependencies
npm install
# install browsers
npx playwright install
# run tests
npm test
# view html report
npm run test:report
Allure reporting (macOS):
Install the Allure CLI (recommended via Homebrew):
install brew if you don't have it: https://brew.sh/
brew install allure
运行测试后,生成并打开Allure报告:
run tests (this will create allure-results via the allure-playwright reporter)
npm test
generate the HTML report
npm run allure:generate
open the report in your browser
npm run allure:open
