From 010031b3d806beb5a6c28ccafbecc93f48f44e06 Mon Sep 17 00:00:00 2001 From: Armel van Ravels Date: Thu, 30 Jul 2026 10:24:07 +0200 Subject: [PATCH] Add phpunit in vscode --- modules/home/programs/vscode.nix | 33 +++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/modules/home/programs/vscode.nix b/modules/home/programs/vscode.nix index b920f95..1bc31d1 100644 --- a/modules/home/programs/vscode.nix +++ b/modules/home/programs/vscode.nix @@ -11,6 +11,30 @@ let continue.continue vue.volar ms-vscode-remote.remote-containers + (pkgs.vscode-utils.buildVscodeMarketplaceExtension { + mktplcRef = { + publisher = "ryanluker"; + name = "vscode-coverage-gutters"; + version = "2.14.0"; # use the current version + sha256 = "sha256-waF3FmncUsXqWFWGRy9X7RQ29BDRYlaqyFhEXg4HXNo"; + }; + }) + (pkgs.vscode-utils.buildVscodeMarketplaceExtension { + mktplcRef = { + publisher = "amiralizadeh9480"; + name = "laravel-extra-intellisense"; + version = "0.7.4"; # use the current version + sha256 = "sha256-EoyKm2YYfEZDmI1mqRU/SaNk0bNLPrWVINpIhglnL80="; + }; + }) + (pkgs.vscode-utils.buildVscodeMarketplaceExtension { + mktplcRef = { + publisher = "recca0120"; + name = "vscode-phpunit"; + version = "3.9.40"; # use the current version + sha256 = "sha256-EVyDT5aXu1KsGr8xrBQlIRCMOtiCyHgU7aDjl9d9ldY="; + }; + }) ]; userSettings = { @@ -18,11 +42,18 @@ let "workbench.colorTheme" = "Catppuccin Mocha"; "workbench.editor.enablePreview" = false; "direnv.restart.automatic" = true; - "terminal.integrated.defaultProfile.linux" = "zsh"; "terminal.integrated.profiles.linux".zsh = { path = "${pkgs.zsh}/bin/zsh"; }; + "coverage-gutters.coverageBaseDir" = "test-reports"; + # PHPUnit + "phpunit.command" = + "docker compose exec laravel.test \${php} \${phpargs} \${phpunit} \${phpunitargs}"; + "phpunit.phpunit" = "artisan test"; + "phpunit.paths" = { + "\${workspaceFolder}" = "/var/www/html"; + }; }; editors = {