Run Go test functions written in third-party library formats (e.g., gocheck
) from the Testing sidebar.
- Run/debug tests by clicking on the Code Lens button appearing above test functions.
- go-check (
gopkg.in/check.v1
) - quicktest (
github.com/frankban/quicktest
) - qtsuite (
github.com/frankban/quicktest/qtsuite
)
-
go-check
might need you to include this bootstrap function in your test packages:// Hook up go-check into the "go test" runner. func Test(t *testing.T) { check.TestingT(t) } type myTestSuite struct { } var _ = check.Suite(&myTestSuite{}) func (s *myTestSuite) TestSomething(c *check.C) { // ... }
-
quicktest
andqtsuite
might need you to include this bootstrap function in your test packages (given that your test suite struct is namedmyTestSuite
):// Register your test suite's functions as subtests. func Test(t *testing.T) { qtsuite.Run(quicktest.New(t), &myTestSuite{}) } type myTestSuite struct { } func (s *myTestSuite) TestSomething(c *quicktest.C) { // ... }
Please kindly provide your feedbacks and/or suggestions by submitting a new issue in the extension's GitHub repository. 🍏