https://github.com/zodman/code-coverage-with-selenium
https://github.com/zodman/code-coverage-with-selenium
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zodman/code-coverage-with-selenium
- Owner: zodman
- Created: 2023-07-18T18:01:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-18T18:20:48.000Z (almost 3 years ago)
- Last Synced: 2025-06-25T04:45:54.052Z (about 1 year ago)
- Language: JavaScript
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code coverage report with selenium
More info here https://opensrc.mx/posts/getting-a-code-coverage-report-with-selenium/
## Get it working
### For getting working the frontend
```
cd react/
npm install
npm run dev
```
### Run the e2e
```
python -m env .venv
source .venv/bin/activate
pip install -r requirements.txt
python test_todo.py
```
### Analyze the coverage
```
mkdir -p react/.nyc_output
cp coverage1.json react/.nyc_output
cd react
npx -y nyc report
npx -y nyc report -r html
firefox coverage/index.html
```