Skip to content

Commit

Permalink
Fix: Do not show help when failOnEmptyTestSuite is false
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Feb 10, 2023
1 parent fec5338 commit e232aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextUI/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ private function executeCommandsThatRequireCompleteConfiguration(Configuration $

private function executeHelpCommandWhenThereIsNothingElseToDo(Configuration $configuration, TestSuite $testSuite): void
{
if ($testSuite->isEmpty() && !$configuration->hasCliArgument() && !$configuration->hasDefaultTestSuite()) {
if ($testSuite->isEmpty() && !$configuration->hasCliArgument() && !$configuration->hasDefaultTestSuite() && $configuration->failOnEmptyTestSuite()) {
$this->execute(new ShowHelpCommand(Result::FAILURE));
}
}
Expand Down

0 comments on commit e232aa2

Please sign in to comment.