Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. All integration tests should be in a subpackage, not in the root integration package.
  2. Integration tests should be executing pipelines with ptest.Run(). Tests that do not execute pipelines likely do not belong as integration tests.
    1. If this is a new package, it's required that TestMain(m *testing.M) is defined and calls ptest.Main(m).
  3. 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.

    1. The test filter will fail the test in the event TestMain doesn't call ptest.Main.