| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 1 | Going from failing tests to failing tests is not a regression |
| 2 | |||||
| 3 | -- p_test.go -- | ||||
| 4 | package p | ||||
| 5 | |||||
| 6 | import "testing" | ||||
| 7 | |||||
| 8 | func TestX(t *testing.T) { | ||||
| 9 | t.FailNow() | ||||
| 10 | } | ||||
| 11 | |||||
| 12 | -- .commit -- | ||||
| 13 | Initial commit (with failing test) | ||||
| 14 | |||||
| 15 | -- p_test.go -- | ||||
| 16 | package p | ||||
| 17 | |||||
| 18 | import "testing" | ||||
| 19 | |||||
| 20 | func TestX(t *testing.T) { | ||||
| 21 | t.FailNow() | ||||
| 22 | } | ||||
| 23 | |||||
| 24 | -- .commit -- | ||||
| 25 | Test still failing | ||||
| 26 | |||||
| 27 | -- .run_test -- | ||||
| 28 | OK | ||||