Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kwishna/playwright-test-runner
Playwright using inbuilt test runner
https://github.com/kwishna/playwright-test-runner
allure-report api-test jest playwright playwright-typescript uitest
Last synced: about 1 month ago
JSON representation
Playwright using inbuilt test runner
- Host: GitHub
- URL: https://github.com/kwishna/playwright-test-runner
- Owner: kwishna
- Created: 2023-09-08T21:50:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-17T21:43:40.000Z (7 months ago)
- Last Synced: 2024-11-07T16:17:29.566Z (3 months ago)
- Topics: allure-report, api-test, jest, playwright, playwright-typescript, uitest
- Language: TypeScript
- Homepage:
- Size: 302 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
This is an automated testing project built with Playwright, a modern and reliable end-to-end testing library for web applications. The project aims to provide a comprehensive testing framework for web applications, covering various scenarios and test cases.
#### Features
- End-to-end testing with Playwright
- Parallel test execution
- Headless and headed mode support
- Comprehensive test reporting (HTML, JSON, JUnit)
- Test retries and failure handling
- Global setup and teardown
- Test fixtures and utilities
- Cross-browser testing (Chromium, Firefox, WebKit)
- Mobile device emulation
- Environment variable configuration
- TypeScript support#### Prerequisites
- Node.js (version specified in package.json)
- npm (comes bundled with Node.js)## Installation
##### Clone the repository:
`git clone https://github.com/kwishna/playwright-test-runner.git`#### Navigate to the project directory:
`cd playwright-test-runner`#### Install the dependencies:
`npm install`#### Running Tests
To run the tests, use the following command:
`npm test`
This will run all the tests in the src/tests directory.#### Configuration
The project configuration is defined in the `playwright.config.ts` file. Here, you can customize various settings such as browser options, test reporters, test retries, and more.#### Test Structure
The tests are organized in the `src/tests` directory. Each test file should have the `*.spec.ts` extension and follow the Playwright test structure.#### Test Reporting
The project generates test reports in multiple formats (`HTML, JSON, JUnit`) after each test run. The reports are stored in the test-results directory.### Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.