- Clone the repository:
git clone https://github.com/Gobinath90/playwright-boilerplate.git
- Navigate to the project directory:
cd playwright-boilerplate
- Install project dependencies:
npm install
- Install Playwright browsers: Playwright requires browser binaries to run. You can install them with the following command:
npx playwright install
If you only want to install Chromium, use:
npx playwright install chromium
- To run all tests, use, run
npm run test
- Run the tests with the Allure reporter:
playwright test --reporter=allure-playwright
- Generate the Allure report:
allure generate allure-results --clean -o allure-report
- Open the Allure report:
allure open allure-report