feat: split long running UTs#1631
Conversation
|
Claude finished @arnaubennassar's task in 1m 17s —— View job Review Complete ✅I've reviewed this PR that splits unit tests into fast and slow categories. The implementation is clean and follows Go testing best practices. 🚀 What's New
🐛 Bug FixesNone. 📋 Config UpdatesNone.
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
joanestebanr
left a comment
There was a problem hiding this comment.
I suggest that CI also runs the short test individually for this reason:
- If unit-test fails will be so easy to known if are the long or short ones
- To prevent a non-short test from being mistakenly classified as short.
| @@ -105,6 +105,10 @@ build-docker-debug: ## Builds a debug docker image (dlv headless on :40000, no o | |||
| test-unit: ## Runs the unit tests | |||
| trap '$(STOP)' EXIT; MallocNanoZone=0 go test -count=1 -short -race -p 1 -covermode=atomic -coverprofile=coverage.out -timeout 15m ./... | |||
There was a problem hiding this comment.
Makefile target test-unit also runs the short version of tests (-short)
| trap '$(STOP)' EXIT; MallocNanoZone=0 go test -count=1 -short -race -p 1 -covermode=atomic -coverprofile=coverage.out -timeout 15m ./... | ||
|
|
||
| .PHONY: test-unit-short | ||
| test-unit-short: ## Runs only the fast unit tests (skips integration tests). Suitable for editor on-save runs. |
There was a problem hiding this comment.
Maybe make sense to use the same params as test-unit? or we want to force that short ones can run in parallel? WDYT:
trap '$(STOP)' EXIT; MallocNanoZone=0 go test -count=1 -short -race -p 1 -covermode=atomic -coverprofile=coverage.out -timeout 15m ./...
But decreasing the timeout to prevent that any no-short test



🔄 Changes Summary
None
📋 Config Updates
None
✅ Testing
tested that things keep working... UTs still take 20s to run
🐞 Issues