Skip to content

Conversation

@vdavid
Copy link
Owner

@vdavid vdavid commented Nov 25, 2025

See commit messages

- Remove trivial tests that don't add value (config, basic DB connection tests).
- Convert multi-case tests to table-driven format across all packages (api, db, imap).
- Replace manual mock implementations with mockery-generated mocks for IMAPService, IMAPPool, IMAPClient, and ThreadCountUpdater.
- Use testify assertions throughout for better error messages
- Create shared test helpers in api_test_helpers.go to reduce duplication.
- Add testify and mockery dependencies with documentation.
- Extract ThreadCountUpdater interface for better testability.
- Fix variable shadowing issue in folder_test.go
- Update AGENTS.md, testing.md, and technical-decisions.md with new testing patterns.
The most important changes:
- Rewrote check.sh from bash to Go for better maintainability, in a modular structure.
- Added auto-fixing for gofmt, prettier, and eslint (disabled with --ci flag).

Improvements:
- Added execution time display for each check and total runtime.
- Also enabled tests for the /scripts directory
- Enabled ESLint and Prettier for E2E tests. E2E tests moved to /frontend/e2e.
- Reformatted all E2E test files with Prettier.

Fixes:
- Fixed E2E double-run issue by capturing output on first run

Other changes:
- Updated CI workflow to use new check binary with --ci flag
- Updated documentation to match other script READMEs
- Removed unused code (printSuccess, printWarning, CheckResult)
To help keep the project up to date
- Add Procfile.dev and backend/.air.toml for single-command dev setup
- Update CONTRIBUTING.md with Overmind quick start guide
- Document new dev tools in docs/tech-stack.md
- Make .env finding logic more resilient
@vdavid vdavid enabled auto-merge (rebase) November 25, 2025 00:26
@vdavid vdavid force-pushed the cleanup-after-5-4 branch 5 times, most recently from 6f2e2c9 to 618ee74 Compare November 30, 2025 13:07
@vdavid vdavid merged commit 39cc8b4 into main Nov 30, 2025
4 checks 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