From b80dbbfdc11d993c0fad79a1d2e91814c5916c42 Mon Sep 17 00:00:00 2001 From: oreodave Date: Sun, 25 Aug 2019 21:57:38 +0100 Subject: +execute async subprocess to run full test The subprocess runs the given test in full detail meaning it can read output messages as well. This test is run in a buffer meaning I can read the output of c# unit tests without vscode :) --- doom.d/config.org | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doom.d') diff --git a/doom.d/config.org b/doom.d/config.org index cc546f3..261456d 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -150,6 +150,13 @@ My docsets are stored in .docsets for ease of use :unwind (lambda () (counsel-delete-process) (swiper--cleanup)) + :action (lambda (x) + (set-process-sentinel + (start-process-shell-command "csharp-unit-testing" "*csharp-test-output*" (format "dotnet test --logger \"console;verbosity=detailed\" --filter FullyQualifiedName~%S" x)) + (lambda (process _event) + (when (memq (process-status process) '(exit stop)) + (message "Unit test finished :\)")))))))))) + (setq omnisharp-server-executable-path "~/bin/omnisharp/run") (add-hook 'csharp-mode-hook '(lambda() (setq c-basic-offset 4))) ; Hook for csharp setting variables -- cgit v1.2.3-13-gbd6f