Skip to content

build: Text Coverage + Fixed Go Version Requirement#18

Merged
DylanDevelops merged 4 commits into
mainfrom
ravel/test-coverage
Dec 18, 2025
Merged

build: Text Coverage + Fixed Go Version Requirement#18
DylanDevelops merged 4 commits into
mainfrom
ravel/test-coverage

Conversation

@DylanDevelops
Copy link
Copy Markdown
Owner

Pull Request Checklist

  • I have read and followed the contribution guidelines.
  • My pull request targets the main branch of tmpo.
  • I have tested these changes locally on my machine.

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:

  • Added new unit tests for project name detection, hourly rate validation, and related logic in cmd/init_test.go.
  • Added unit tests for date, time, and datetime validation and parsing in cmd/manual_test.go.
  • Added tests for project name detection logic in cmd/start_test.go.
  • Added tests for version formatting and changelog URL generation in cmd/version_test.go.

Go Version Upgrade:

  • Updated Go version requirement to 1.25 in GitHub Actions workflows (.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:

  • Added github.com/stretchr/testify and other indirect dependencies in go.mod to support new and existing tests.

CI Improvements:

  • Enhanced test workflow to include running unit tests and tests with race detection in .github/workflows/test.yml.

Screenshots

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.
@DylanDevelops DylanDevelops merged commit 834e846 into main Dec 18, 2025
6 checks passed
@DylanDevelops DylanDevelops deleted the ravel/test-coverage branch December 18, 2025 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant