Skip to content

Add comprehensive unit tests#3

Merged
alexfedosov merged 4 commits intomainfrom
add-tests
Mar 18, 2025
Merged

Add comprehensive unit tests#3
alexfedosov merged 4 commits intomainfrom
add-tests

Conversation

@alexfedosov
Copy link
Owner

@alexfedosov alexfedosov commented Mar 18, 2025

Summary

  • Add unit tests for the core ablmodels package
  • Add unit tests for app package functionality
  • Add unit tests for the CLI commands
  • Utilize testify for improved assertions and test readability
  • Set up GitHub Actions workflows for CI:
    • Run tests on PR against main branch
    • Run tests before building releases

Test plan

  • Run go test ./... to verify all tests pass
  • Testing coverage includes core functionality, models, and CLI
  • GitHub Actions will automatically run tests on PRs and before releases

- Add tests for core ablmodels package
- Add tests for app package functionality
- Add tests for command-line interface
- Use testify for improved assertions and readability
- Add PR checks workflow to run tests on PRs targeting main
- Update release workflow to run tests before building
- Remove trailing whitespace
- Ensure files end with newline
… comments above each test function\n- Remove redundant inline comments for cleaner code\n- Each test function now has a clear purpose statement\n- Run go fmt on all files to ensure consistent style
@alexfedosov alexfedosov marked this pull request as ready for review March 18, 2025 11:36
@alexfedosov alexfedosov merged commit abbfc9e into main Mar 18, 2025
1 check passed
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