smarty / gunit

xUnit-style test fixture adapter for go test
Other
120 stars 11 forks source link

Inadvertently leaving 'Focus' mode engaged leads to false positive test results #22

Closed mdwhatcott closed 5 years ago

mdwhatcott commented 5 years ago

We've all been there. A few tests aren't passing. We want to debug one of them. We add the Focus prefix to the test name and set a few breakpoints. After emerging from the rabbit hole bearing the gleaming fur of several newly shorn yaks we go on our merry way, blissfully forgetful that the 'Focus' prefix still remains. Sooner or later when we expect a test to fail and it doesn't we sense a disturbance in the force...