package main import ( "testing" . "github.com/smartystreets/goconvey/convey" ) // TestSimpleFailing 测试TDD失败原则 func TestSimpleFailing(t *testing.T) { Convey("Given a failing test", t, func() { Convey("When running the test", func() { Convey("Then it should fail", func() { So(true, ShouldBeFalse) // 故意失败 }) }) }) }