franela / goblin

Minimal and Beautiful Go testing framework
MIT License
884 stars 79 forks source link

Make tests excluded or forced #56

Closed basharov closed 7 years ago

basharov commented 7 years ago

It would be great to have excluding of tests, for example, by renaming It to Xit:

    // This test will be excluded and not run
     g.Xit("Should add two numbers ", func() {
            g.Assert(1+1).Equal(2)
        })

And vice versa, force a single test or test suite to run by renaming It to Fit:

    // Only this tests will run 
     g.Fit("Should add two numbers ", func() {
            g.Assert(1+1).Equal(2)
        })

Thanks!

marcosnils commented 7 years ago

@basharov I like the Xit feature, in fact we though about implementing it but we didn't have time.

Regarding the Fit thing, wouldn't goblin.run flag work?

marcosnils commented 7 years ago

Ping

marcosnils commented 7 years ago

Fixed by #62