Some checks failed
Tests / test (ubuntu-latest, 3.10) (push) Successful in 44s
Tests / test (ubuntu-latest, 3.8) (push) Failing after 4m3s
Tests / test (ubuntu-latest, 3.9) (push) Successful in 14m4s
Tests / test (macos-latest, 3.10) (push) Has been cancelled
Tests / test (macos-latest, 3.8) (push) Has been cancelled
Tests / test (macos-latest, 3.9) (push) Has been cancelled
Tests / test (windows-latest, 3.10) (push) Has been cancelled
Tests / test (windows-latest, 3.8) (push) Has been cancelled
Tests / test (windows-latest, 3.9) (push) Has been cancelled
Jimaku-DL Tests
This directory contains tests for the jimaku-dl package using pytest.
Running Tests
To run all tests:
pytest
To run with verbose output:
pytest -v
To run a specific test file:
pytest tests/test_downloader.py
To run a specific test:
pytest tests/test_downloader.py::TestJimakuDownloader::test_init
Test Coverage
To generate a test coverage report:
pytest --cov=jimaku_dl
For an HTML coverage report:
pytest --cov=jimaku_dl --cov-report=html
Adding Tests
- Create test files with the naming convention
test_*.py
- Create test classes with the naming convention
Test*
- Create test methods with the naming convention
test_*
- Use the fixtures defined in
conftest.py
for common functionality