stretchr / gorc

Recursive go testing, done better.
141 stars 2 forks source link

Add ability to conditional run some tests #18

Closed matryer closed 10 years ago

matryer commented 11 years ago

As a developer I want to omit long running tests So that I can quickly test new code without having to run every test function in a file.


Perhaps I could do:

gort --without=threads

Then in code, maybe this:

func TestThreads(t *testing.T) {
  gort.Group("threads", func(t *testing.T){
     // test code goes here
  })
}