update
Some checks failed
Tests / test (ubuntu-latest, 3.8) (push) Failing after 24m2s
Tests / test (ubuntu-latest, 3.10) (push) Failing after 24m4s
Tests / test (ubuntu-latest, 3.9) (push) Failing after 10m52s
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

This commit is contained in:
2025-03-08 23:52:40 -08:00
parent a66e3ab455
commit ad11faf1b0
23 changed files with 2946 additions and 155 deletions

50
tests/README.md Normal file
View File

@@ -0,0 +1,50 @@
# Jimaku-DL Tests
This directory contains tests for the jimaku-dl package using pytest.
## Running Tests
To run all tests:
```bash
pytest
```
To run with verbose output:
```bash
pytest -v
```
To run a specific test file:
```bash
pytest tests/test_downloader.py
```
To run a specific test:
```bash
pytest tests/test_downloader.py::TestJimakuDownloader::test_init
```
## Test Coverage
To generate a test coverage report:
```bash
pytest --cov=jimaku_dl
```
For an HTML coverage report:
```bash
pytest --cov=jimaku_dl --cov-report=html
```
## Adding Tests
1. Create test files with the naming convention `test_*.py`
2. Create test classes with the naming convention `Test*`
3. Create test methods with the naming convention `test_*`
4. Use the fixtures defined in `conftest.py` for common functionality