Skip to content

Commit

Permalink
uniterate mode with env variable or single tool shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Edmonds committed Aug 3, 2018
1 parent 6f0d282 commit 4d13427
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/generic/phpunit.inc.bash
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ do
fi
if [[ "1" == "$phpUnitIterativeMode" ]]
then
echo
echo "Uniterate Mode - Iterative Testing with Fast Failure"
echo "----------------------------------------------------"
echo
extraConfigs+=( --order-by=depends,defects )
extraConfigs+=( --stop-on-failure --stop-on-error --stop-on-defect --stop-on-warning )
fi
Expand Down
2 changes: 2 additions & 0 deletions includes/options.inc.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function usage {
echo " stan|phpstan phpstan"
echo " ann|phpunitAnnotations phpunitAnnotations"
echo " unit|phpunit phpunit"
echo " uniterate phpunit iterative mode - prioritise broken tests and fail on error"
echo " infect|infection infection"
echo " md|messdetector php mess detector"
echo " ml|markdown markdown validation"
Expand Down Expand Up @@ -63,6 +64,7 @@ then
stan | phpstan ) singleToolToRun="phpstan";;
ann | phpunitAnnotations ) singleToolToRun="phpunitAnnotations";;
unit | phpunit ) singleToolToRun="phpunit";;
uniterate ) singleToolToRun="phpunit"; phpUnitIterativeMode=1;;
infect | infection ) singleToolToRun="infection";;
md | messdetector ) singleToolToRun="messDetector";;
ml | markdown ) singleToolToRun="markdownLinks";;
Expand Down

0 comments on commit 4d13427

Please sign in to comment.