MCPcopy
hub / github.com/stretchr/testify / TestFailfastSuiteFailFastOn

Function TestFailfastSuiteFailFastOn

suite/suite_test.go:650–662  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

648}
649
650func TestFailfastSuiteFailFastOn(t *testing.T) {
651 // To test this with failfast on (and isolated from other intended test failures in our test suite) we launch it in its own process
652 cmd := exec.Command("go", "test", "-v", "-race", "-run", "TestFailfastSuite", "-failfast")
653 var out bytes.Buffer
654 cmd.Stdout = &out
655 t.Log("Running go test -v -race -run TestFailfastSuite -failfast")
656 err := cmd.Run()
657 t.Log(out.String())
658 if err != nil {
659 t.Log(err)
660 t.Fail()
661 }
662}
663func (s *FailfastSuite) SetupSuite() {
664 s.call("SetupSuite")
665}

Callers

nothing calls this directly

Calls 3

RunMethod · 0.45
StringMethod · 0.45
FailMethod · 0.45

Tested by

no test coverage detected