...
- All integration tests should be in a subpackage, not in the root
integration
package. - Integration tests should be executing pipelines with
ptest.Run()
. Tests that do not execute pipelines likely do not belong as integration tests.- If this is a new package, it's required that
TestMain(m *testing.M)
is defined and callsptest.Main(m)
.
- If this is a new package, it's required that
The integration package defines a way to enable test filtering for your integration test. Call
integration.CheckFilters(t)
at the start of the test. integration.go contains the various runner specific filters, to filter out tests per runner, if they don't support the given feature under test. All integration tests should have test filtering enabled.- The test filter will fail the test in the event
TestMain
doesn't callptest.Main
.
- The test filter will fail the test in the event
...