Skip to content
Snippets Groups Projects
Commit f4510b75 authored by llaffont's avatar llaffont
Browse files

Phafi: on peut runner les tests sur groupes avec \C-crg phafi-run-phpunit-on-group

parent 6e06526a
Branches
Tags
No related merge requests found
......@@ -217,6 +217,14 @@
)
(defun phafi-run-phpunit-on-group(name)
"Run all phpunit tests tagged by @group"
(interactive "sGroup name: ")
(setq phafi-phpunit-command
(concat "phpunit -c " phafi-phpunit-config " --group " name))
(compile phafi-phpunit-command)
)
(defun phafi-toggle-phpunit-profiling ()
(interactive)
(setq phafi-phpunit-profiling (not phafi-phpunit-profiling))
......@@ -451,6 +459,7 @@
("\C-crm" . phafi-run-phpunit-filtered-custom)
("\C-crl" . phafi-run-last-phpunit-command)
("\C-crp" . phafi-run-phpunit)
("\C-crg" . phafi-run-phpunit-on-group)
("\C-cse" . phafi-run-phpunit-stop-on-error)
("\C-csf" . phafi-run-phpunit-stop-on-failure)
("\C-crd" . phafi-debug-phpunit-function)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment