...

Source file src/edge-infra.dev/test/framework/integration/config_example_test.go

Documentation: edge-infra.dev/test/framework/integration

     1  package integration
     2  
     3  import (
     4  	"edge-infra.dev/test/framework"
     5  )
     6  
     7  func ExampleSkip() {
     8  	// A test suite which is skipped when it is an integration test run +
     9  	// exampleSkipper skips the test
    10  	_ = framework.New("skipping-suite").Setup(Skip(exampleSkipper))
    11  }
    12  
    13  func ExampleSkipIfNot() {
    14  	// A test suite which is skipped when the test run isn't an integration test
    15  	_ = framework.New("skipping-suite").Setup(SkipIfNot)
    16  }
    17  
    18  func exampleSkipper(f *framework.Framework) {
    19  	f.Skip("example-skipper", "im skipping a test")
    20  }
    21  

View as plain text