diff --git a/app/Console/Commands/UpdateVersionFile.php b/app/Console/Commands/UpdateVersionFile.php index a1585bee..bdeb3e21 100644 --- a/app/Console/Commands/UpdateVersionFile.php +++ b/app/Console/Commands/UpdateVersionFile.php @@ -10,6 +10,12 @@ class UpdateVersionFile extends Command protected $description = 'Updates the version in version.txt'; + /** + * Ignoring this command from code coverage as it is dependent on whether Git is + * installed or not, which can vary from machine to machine. + * + * @codeCoverageIgnore + */ public function handle(): int { if (trim(shell_exec('git rev-parse --is-inside-work-tree')) !== 'true') {