| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 1 | Adding failing tests is a regression |
| 2 | |||||
| 3 | -- p.go -- | ||||
| 4 | package p | ||||
| 5 | |||||
| 6 | -- .commit -- | ||||
| 7 | Initial commit with no tests | ||||
| 8 | |||||
| 9 | -- p_test.go -- | ||||
| 10 | package p | ||||
| 11 | |||||
| 12 | import "testing" | ||||
| 13 | |||||
| 14 | func TestP(t *testing.T) { | ||||
| 15 | t.FailNow() | ||||
| 16 | } | ||||
| 17 | |||||
| 18 | -- .commit -- | ||||
| 19 | Add failing test | ||||
| 20 | |||||
| 21 | -- .run_test -- | ||||
| 22 | Test regressions detected between initial commit (cf75ed70e940ce33a17a70b1894ad053b67731c0) and HEAD: | ||||
| 23 | |||||
| 24 | 1: sketch.dev.TestP: New test is failing | ||||
| 25 | |||||
| 26 | |||||
| 27 | Please fix before proceeding. | ||||