Skip to content

Commit 4d13427

Browse files
uniterate mode with env variable or single tool shortcut
1 parent 6f0d282 commit 4d13427

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

includes/generic/phpunit.inc.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ do
4343
fi
4444
if [[ "1" == "$phpUnitIterativeMode" ]]
4545
then
46+
echo
47+
echo "Uniterate Mode - Iterative Testing with Fast Failure"
48+
echo "----------------------------------------------------"
49+
echo
4650
extraConfigs+=( --order-by=depends,defects )
4751
extraConfigs+=( --stop-on-failure --stop-on-error --stop-on-defect --stop-on-warning )
4852
fi

includes/options.inc.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function usage {
2828
echo " stan|phpstan phpstan"
2929
echo " ann|phpunitAnnotations phpunitAnnotations"
3030
echo " unit|phpunit phpunit"
31+
echo " uniterate phpunit iterative mode - prioritise broken tests and fail on error"
3132
echo " infect|infection infection"
3233
echo " md|messdetector php mess detector"
3334
echo " ml|markdown markdown validation"
@@ -63,6 +64,7 @@ then
6364
stan | phpstan ) singleToolToRun="phpstan";;
6465
ann | phpunitAnnotations ) singleToolToRun="phpunitAnnotations";;
6566
unit | phpunit ) singleToolToRun="phpunit";;
67+
uniterate ) singleToolToRun="phpunit"; phpUnitIterativeMode=1;;
6668
infect | infection ) singleToolToRun="infection";;
6769
md | messdetector ) singleToolToRun="messDetector";;
6870
ml | markdown ) singleToolToRun="markdownLinks";;

0 commit comments

Comments
 (0)