feat: run tests via gotestsum to report the number of tests per testing type - #437
Merged
Conversation
sbp-bvanb
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #301.
What
Runs all
test*tasks through gotestsum instead of plaingo test, so every run ends with a summary line such as:Because each testing type (
unit,integration,component,e2e) already runs as its own task/matrix job, this yields the per-type test counts asked for in #301.How
build/task.ymlGOTESTSUM_BIN,GOTESTSUM_ENABLED(defaulttrue),GOTESTSUM_FORMAT(defaulttestname),GOTESTSUM_VERSION.gotestsum-installtask, following the existinggta-install/osv-scanner-installpattern. It is a no-op whenGOTESTSUM_ENABLEDisfalse.testtask now picksgotestsum --format <format> --orgo testand passes the existing flags unchanged.scripts/package-version-updater.sh- registersGOTESTSUM_VERSIONso the weekly updater keeps it current.README.md/CLAUDE.md- document the new override variables.Opting out
Verified locally
task remote:test-cicdon a scratch module:DONE 3 tests in 1.374s.task remote:coverageunaffected;-coverprofileis passed through and the threshold check still works.GOTESTSUM_ENABLED=falsefalls back to the previousgo testoutput.taskfile-sorted-unitsandtaskfile-without-empty-lineschecks pass.Out of scope
Aggregating the four counts into a single cross-job summary (artifact upload +
$GITHUB_STEP_SUMMARY) is deliberately left out; it can follow up if there is demand.