File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 3636# phpunitFailedOnlyFiltered=1
3737# fi
3838# fi
39- noCoverage =(" " )
39+ extraConfigs =(" " )
4040 if [[ " 1" != " $phpUnitCoverage " ]]
4141 then
42- noCoverage+=( --no-coverage )
42+ extraConfigs+=( --no-coverage )
43+ fi
44+ if [[ " 1" == " $phpUnitIterativeMode " ]]
45+ then
46+ extraConfigs+=( --order-by=depends,defects )
47+ extraConfigs+=( --stop-on-failure --stop-on-error --stop-on-defect --stop-on-warning )
4348 fi
4449 set +e
4550 set -x
4853 ${paratestConfig[@]} \
4954 -c ${phpUnitConfigPath} \
5055 ${rerunFilter[@]} \
51- ${noCoverage [@]} \
56+ ${extraConfigs [@]} \
5257 --enforce-time-limit \
5358 --fail-on-risky \
5459 --fail-on-warning \
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ phpcsFailOnWarning=0
3636
3737# #PHPUnit Configs
3838
39+ # Iterative Mode - prioritises runnign failed tests and stops on first error
40+ phpUnitIterativeMode=${phpUnitIterativeMode:- 0}
41+
3942# PHPUnit Quick Tests - optional skip slow tests
4043phpUnitQuickTests=${phpUnitQuickTests:- 0}
4144
You can’t perform that action at this time.
0 commit comments