(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func TestRuntime_WithRetries(t *testing.T) { |
| 33 | s := getExampleTestCases() |
| 34 | s[0].Command.Retries = 3 |
| 35 | s[0].Command.Cmd = "echo fail" |
| 36 | |
| 37 | r := getRuntime() |
| 38 | got := r.Start(s) |
| 39 | |
| 40 | var counter = 0 |
| 41 | for _, r := range got.TestResults { |
| 42 | counter++ |
| 43 | assert.False(t, r.ValidationResult.Success) |
| 44 | assert.Equal(t, 3, r.Tries) |
| 45 | } |
| 46 | |
| 47 | assert.Equal(t, 1, counter) |
| 48 | } |
| 49 | |
| 50 | func Test_AlphabeticalOrder(t *testing.T) { |
| 51 | tests := []TestCase{ |
nothing calls this directly
no test coverage detected