Skip to content

core go test

Run Go tests with coverage and filtered output.

Usage

bash
core go test [flags]

Flags

FlagDescription
--pkgPackage to test (default: ./...)
--runRun only tests matching regexp
--shortRun only short tests
--raceEnable race detector
--coverageShow detailed per-package coverage
--jsonOutput JSON results
-vVerbose output

Examples

bash
core go test                    # All tests
core go test --pkg ./pkg/core   # Specific package
core go test --run TestHash     # Specific test
core go test --coverage         # With coverage
core go test --race             # Race detection

Released under the EUPL-1.2 License.