import ( "testing" . "github.com/motain/gocheck" ) func TestSomething(t *testing.T) { skip := true if skip { t.Skip("Skipping this test case.") } // Perform tests here }
func (s *MySuite) TestSomething(c *C) { skip := true if skip { c.Skip("Skipping this test case.") } // Perform tests here }The above code will skip the test case if the `skip` variable is set to true, using the `Skip()` function from GoCheck. The github.com/motain/gocheck C Skip package is a part of the GoCheck library.