+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 :)
This commit is contained in:
oreodave
2019-08-25 21:57:38 +01:00
parent 3df00c2d24
commit b80dbbfdc1

View File

@@ -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