Legoktm has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/405571 )
Change subject: Output error if there are no tests to run
......................................................................
Output error if there are no tests to run
Change-Id: I607b393592f324561b49b03ae9487e82f342f9ab
---
M src/CheckCommand.php
1 file changed, 7 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/tools/phpunit-patch-coverage
refs/changes/71/405571/1
diff --git a/src/CheckCommand.php b/src/CheckCommand.php
index 1b7bb66..a78246d 100644
--- a/src/CheckCommand.php
+++ b/src/CheckCommand.php
@@ -172,6 +172,13 @@
$oldClover = null;
}
+ if ( !$testsToRun && !$testsOldToRun ) {
+ $output->writeln(
+ '<error>Could not find any tests to
run.</error>'
+ );
+ return;
+ }
+
$diff = ( new Differ() )->diff( $oldClover, $newClover );
$printer = new DiffPrinter( $output );
$printer->show( $diff );
--
To view, visit https://gerrit.wikimedia.org/r/405571
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I607b393592f324561b49b03ae9487e82f342f9ab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/tools/phpunit-patch-coverage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits