(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func Test_AlphabeticalOrder(t *testing.T) { |
| 51 | tests := []TestCase{ |
| 52 | {Title: "bbb", Command: CommandUnderTest{Cmd: "exit 0;"}}, |
| 53 | {Title: "aaa"}, |
| 54 | {Title: "111"}, |
| 55 | {Title: "_"}, |
| 56 | } |
| 57 | |
| 58 | got := []string{} |
| 59 | runtime := NewRuntime(&EventHandler{TestFinished: func(r TestResult) { |
| 60 | got = append(got, r.TestCase.Title) |
| 61 | }}) |
| 62 | |
| 63 | runtime.Start(tests) |
| 64 | |
| 65 | assert.Equal(t, "111", got[0]) |
| 66 | assert.Equal(t, "_", got[1]) |
| 67 | assert.Equal(t, "aaa", got[2]) |
| 68 | assert.Equal(t, "bbb", got[3]) |
| 69 | } |
| 70 | |
| 71 | func Test_RuntimeWithRetriesAndInterval(t *testing.T) { |
| 72 | s := getExampleTestCases() |
nothing calls this directly
no test coverage detected