Go test Command: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
==Package List Mode== | ==Package List Mode== | ||
=Caching= |
Revision as of 22:52, 8 January 2024
Internal
Overview
The test
command runs tests. The shared flags described here apply:
For more details on testing, in general, see:
go test Execution Modes
The go test
runs in two modes: local directory mode and package list mode.
Local Directory Mode
go test
runs in local directory mode when it is invoked with no package argument. In this mode, go test
compiles the package sources and tests found in the current directory, and then runs the resulting test binary. Caching is disabled.