(t *testing.T)
| 1171 | } |
| 1172 | |
| 1173 | func TestFailfast(t *testing.T) { |
| 1174 | t.Parallel() |
| 1175 | |
| 1176 | t.Run("Default", func(t *testing.T) { |
| 1177 | t.Parallel() |
| 1178 | |
| 1179 | NewExecutorTest(t, |
| 1180 | WithName("default"), |
| 1181 | WithExecutorOptions( |
| 1182 | task.WithDir("testdata/failfast/default"), |
| 1183 | task.WithSilent(true), |
| 1184 | ), |
| 1185 | WithPostProcessFn(PPSortedLines), |
| 1186 | WithRunError(), |
| 1187 | ) |
| 1188 | }) |
| 1189 | |
| 1190 | t.Run("Option", func(t *testing.T) { |
| 1191 | t.Parallel() |
| 1192 | |
| 1193 | NewExecutorTest(t, |
| 1194 | WithName("default"), |
| 1195 | WithExecutorOptions( |
| 1196 | task.WithDir("testdata/failfast/default"), |
| 1197 | task.WithSilent(true), |
| 1198 | task.WithFailfast(true), |
| 1199 | ), |
| 1200 | WithPostProcessFn(PPSortedLines), |
| 1201 | WithRunError(), |
| 1202 | ) |
| 1203 | }) |
| 1204 | |
| 1205 | t.Run("Task", func(t *testing.T) { |
| 1206 | t.Parallel() |
| 1207 | |
| 1208 | NewExecutorTest(t, |
| 1209 | WithName("task"), |
| 1210 | WithExecutorOptions( |
| 1211 | task.WithDir("testdata/failfast/task"), |
| 1212 | task.WithSilent(true), |
| 1213 | ), |
| 1214 | WithPostProcessFn(PPSortedLines), |
| 1215 | WithRunError(), |
| 1216 | ) |
| 1217 | }) |
| 1218 | } |
| 1219 | |
| 1220 | func TestIf(t *testing.T) { |
| 1221 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…