feat: Improve testing and add coverage enforcement #3

Merged
eleith merged 1 commits from gemini-tests-and-coverage into main 2025-07-23 00:48:29 +00:00
Owner

This commit introduces a test coverage check to the CI pipeline,
which will fail the build if the total coverage is below 60%. A
number of new tests were added to the project to meet this new
threshold. This change helps to maintain code quality by requiring
tests for new code.

The config and archive packages were refactored to make them
more modular and testable. The paths for the config file and the
archive directory are now defined in the main.go file, making
them a concern of the user rather than the package.

Finally, the golangci-lint dependency was removed from the
tools.go file, as per the recommendation of the golangci-lint
authors.

This commit introduces a test coverage check to the CI pipeline, which will fail the build if the total coverage is below 60%. A number of new tests were added to the project to meet this new threshold. This change helps to maintain code quality by requiring tests for new code. The `config` and `archive` packages were refactored to make them more modular and testable. The paths for the config file and the archive directory are now defined in the `main.go` file, making them a concern of the user rather than the package. Finally, the `golangci-lint` dependency was removed from the `tools.go` file, as per the recommendation of the `golangci-lint` authors.
eleith added 1 commit 2025-07-23 00:32:38 +00:00
This commit introduces a test coverage check to the CI pipeline,
which will fail the build if the total coverage is below 60%. A
number of new tests were added to the project to meet this new
threshold. This change helps to maintain code quality by requiring
tests for new code.

The `config` and `archive` packages were refactored to make them
more modular and testable. The paths for the config file and the
archive directory are now defined in the `main.go` file, making
them a concern of the user rather than the package.

Finally, the `golangci-lint` dependency was removed from the
`tools.go` file, as per the recommendation of the `golangci-lint`
authors.
eleith merged commit 8ddbe32bb0 into main 2025-07-23 00:48:29 +00:00
eleith deleted branch gemini-tests-and-coverage 2025-07-23 00:48:30 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/miniflux-digest#3