|
11 | 11 | [](https://hub.docker.com/r/johandevl/export-trakt-4-letterboxd) |
12 | 12 | [](https://hub.docker.com/r/johandevl/export-trakt-4-letterboxd) |
13 | 13 | [](https://hub.docker.com/r/johandevl/export-trakt-4-letterboxd/tags) |
14 | | -[](coverage.html) |
| 14 | +[](coverage.html) |
15 | 15 | [](https://trakt.tv) |
16 | 16 | [](https://letterboxd.com) |
17 | 17 |
|
@@ -145,6 +145,30 @@ go test -coverprofile=coverage.out ./... |
145 | 145 | go tool cover -html=coverage.out -o coverage.html |
146 | 146 | ``` |
147 | 147 |
|
| 148 | +Run the coverage script (excludes main package): |
| 149 | + |
| 150 | +```bash |
| 151 | +./scripts/coverage.sh |
| 152 | +``` |
| 153 | + |
| 154 | +The project maintains over 78% test coverage across the core packages, which helps ensure reliability and stability. The coverage includes: |
| 155 | + |
| 156 | +- API Client: 73.3% covered |
| 157 | +- Config Management: 85.4% covered |
| 158 | +- Export Functionality: 78.3% covered |
| 159 | +- Internationalization: 81.6% covered |
| 160 | +- Logging System: 97.7% covered |
| 161 | + |
| 162 | +### Code Coverage Configuration |
| 163 | + |
| 164 | +The project includes a `.codecov.yml` file that configures code coverage analysis for CI/CD pipelines. This configuration: |
| 165 | + |
| 166 | +- Sets a 70% coverage threshold for the project |
| 167 | +- Excludes the `cmd/export_trakt` directory (main package) from coverage calculations |
| 168 | +- Provides detailed coverage reports for each pull request |
| 169 | + |
| 170 | +If you're using GitHub Actions or another CI system, this configuration ensures accurate coverage reporting focused on the core packages rather than the main application entry point. |
| 171 | + |
148 | 172 | ## Documentation |
149 | 173 |
|
150 | 174 | Complete documentation is available in the [project Wiki](https://github.com/JohanDevl/Export_Trakt_4_Letterboxd/wiki). |
|
0 commit comments