Go test Command: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * <tt>go</tt> Tool * Go Testing =Overview= The <code>test</code> command runs tests. The shared flags described here apply: {{Internal|Go_Tool_Shared_Flags#Overview|Shared Flags}} For more details on testing, in general, see: {{Internal|Go_Testing#Overview|Go Testing}}")
 
Line 5: Line 5:
The <code>test</code> command runs tests. The shared flags described here apply: {{Internal|Go_Tool_Shared_Flags#Overview|Shared Flags}}
The <code>test</code> command runs tests. The shared flags described here apply: {{Internal|Go_Tool_Shared_Flags#Overview|Shared Flags}}
For more details on testing, in general, see: {{Internal|Go_Testing#Overview|Go Testing}}
For more details on testing, in general, see: {{Internal|Go_Testing#Overview|Go Testing}}
=<tt>go test</tt> Execution Modes=
The <code>go test</code> runs in two modes: [[#Local_Directory_Mode|local directory mode]] and [[#Package_List_Mode|package list mode]].
==Local Directory Mode==
==Package List Mode==

Revision as of 22:49, 8 January 2024

Internal

Overview

The test command runs tests. The shared flags described here apply:

Shared Flags

For more details on testing, in general, see:

Go Testing

go test Execution Modes

The go test runs in two modes: local directory mode and package list mode.

Local Directory Mode

Package List Mode