We can use build tags to run only certain types of tests. In this case, we want integration tests
to run by default, so we tag the integration tests with a negated unit test tag, which indicates
that the test should not be run if the unit
build flag is set.
Alternatively, the integration tests could be tagged with integration
or some other tag, and
they'd only be run if the integration
tag is set on test invocation.
$ go test -tags unit