Skip to content

Conversation

@dansimau
Copy link
Owner

@dansimau dansimau commented Sep 27, 2025

Note

Refactors tests to *_test external packages with parallelization and new internal test suites, and colorizes go test output; minor settings updates.

  • Tests:
    • Switch many files to external test packages (package hal_test, package store_test), updating references to hal.* and exported errors (e.g., hal.ErrEntityNotRegistered).
    • Add internal test suites: config_internal_test.go, sun_internal_test.go, util_internal_test.go to cover unexported helpers.
    • Increase parallelism with t.Parallel() across tests/subtests; minor fixes (e.g., 0o644 perms).
  • Build/Tooling:
    • Makefile: pipe go test -json through testutil/colourise-go-test-output.py for colorized test output.
    • .claude/settings.local.json: expand allowed commands (rm, git rm, grep).

Written by Cursor Bugbot for commit 409680c. This will update automatically on new commits. Configure here.

dansimau and others added 4 commits July 22, 2025 13:41
- Change package declarations from `hal` to `hal_test` for external API tests
- Change package declarations from `store` to `store_test` for store tests
- Move tests accessing internal functions/fields to `*_internal_test.go` files:
  - Move TestNewSunTimes (accesses sunTimes.location) to sun_internal_test.go
  - Move getShortFunctionName and getStringOrStringSlice tests to util_internal_test.go
- Update imports and function calls to use proper package prefixes
- Remove util_test.go (tests moved to util_internal_test.go)
- Add hal import to test files that now use external package

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@dansimau dansimau merged commit e68759b into main Sep 27, 2025
2 checks passed
@dansimau dansimau deleted the dan/lint-fixes branch September 27, 2025 08:35
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.

2 participants