Skip to content

Enhance test coverage across entire codebase for codecov.#489

Open
MrKeiKun wants to merge 2 commits into
tofuutils:mainfrom
MrKeiKun:fix-388-comprehensive-coverage
Open

Enhance test coverage across entire codebase for codecov.#489
MrKeiKun wants to merge 2 commits into
tofuutils:mainfrom
MrKeiKun:fix-388-comprehensive-coverage

Conversation

@MrKeiKun
Copy link
Copy Markdown
Contributor

@MrKeiKun MrKeiKun commented Oct 2, 2025

Description
This PR significantly enhances the test coverage across the entire tenv codebase to improve code quality metrics and ensure better reliability. The comprehensive test additions cover:

Changes Made

  • New test files for all major packages including:
    • Core command packages (cmd/terramate/, cmd/tf/)
    • Configuration management (config/)
    • Package utilities (pkg/)
    • Version management system (versionmanager/)
  • Updated dependencies in go.mod and go.sum to support enhanced testing

Test Coverage Areas

  • API message handling (pkg/apimsg/)
  • Architecture-specific code (pkg/archname/)
  • Security and verification (pkg/check/cosign/)
  • Download and file operations (pkg/download/, pkg/fileperm/)
  • GitHub integration (pkg/github/)
  • Compression utilities (pkg/uncompress/)
  • Version management (builder, proxy, semantic versioning)
  • Library examples and edge cases

Referenced Issue: #388

Signed-off-by: Lorenzo Buitizon <the.keikun@gmail.com>
@MrKeiKun
Copy link
Copy Markdown
Contributor Author

MrKeiKun commented Oct 3, 2025

i think,i can say this is partial one. i wanna see pipeline though

@MrKeiKun MrKeiKun force-pushed the fix-388-comprehensive-coverage branch 8 times, most recently from 1127c22 to 33d94df Compare October 3, 2025 20:38
Signed-off-by: Lorenzo Buitizon <the.keikun@gmail.com>
@MrKeiKun MrKeiKun force-pushed the fix-388-comprehensive-coverage branch from 33d94df to cf3cad0 Compare October 3, 2025 20:59
@MrKeiKun
Copy link
Copy Markdown
Contributor Author

MrKeiKun commented Oct 3, 2025

Right now, total coverage is at least: 42.7%.

@kvendingoldo
Copy link
Copy Markdown
Collaborator

Checking your PR. I can take some time :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants