build: Text Coverage + Fixed Go Version Requirement#18
Merged
Conversation
Added unit tests for cmd, internal/config, internal/export, and internal/project packages to improve test coverage. Updated GitHub Actions workflows to use Go 1.25 and enhanced test workflow with race detection. Updated go.mod and go.sum to include testify and related dependencies for testing.
Raised the minimum required Go version from 1.21 to 1.25 in CONTRIBUTING.md and all installation guides. Updated Linux installation instructions to reference Go 1.25 in download commands.
Moved saving and restoring of the original working directory into each test subcase instead of the parent test function. This ensures isolation between subtests and prevents side effects from directory changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
mainbranch of tmpo.Description
This pull request introduces several improvements to testing, documentation, and configuration for Go version compatibility. The most significant updates are the addition of comprehensive unit tests for core validation and utility functions, an upgrade to Go 1.25 across the codebase and documentation, and the inclusion of new test dependencies.
Testing Improvements:
cmd/init_test.go.cmd/manual_test.go.cmd/start_test.go.cmd/version_test.go.Go Version Upgrade:
.github/workflows/release.yml,.github/workflows/test.yml), documentation (CONTRIBUTING.md,docs/installation/linux_installation.md,docs/installation/macos_installation.md,docs/installation/windows_installation.md), and Go modules (go.mod). [1] [2] [3] [4] [5] [6] [7] [8]Test Dependency Updates:
github.com/stretchr/testifyand other indirect dependencies ingo.modto support new and existing tests.CI Improvements:
.github/workflows/test.yml.Screenshots