Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
ba032e3
Refactor test-running code for readability
nickspoons May 26, 2022
95ee988
Namespace test functions in function dictionaries
nickspoons May 27, 2022
8626713
Refactor test extraction into initialisation
nickspoons May 29, 2022
64bdccb
Add new test runner buffer
nickspoons Jun 2, 2022
fcbe3bb
Add initial omnisharptest syntax file
nickspoons Jun 3, 2022
ae7cb50
Add testrunner Repaint function for updating state
nickspoons Jun 3, 2022
5e475e4
Update test state when starting/completing a test
nickspoons Jun 4, 2022
b17392b
Add spinner for running tests
nickspoons Jun 5, 2022
58cb659
Add option to disable quickfix for test results
nickspoons Jun 5, 2022
50578fd
Update testrunner state when debugging test
nickspoons Jun 5, 2022
5cad3bf
Display Console output and fold syntax regions
nickspoons Jun 10, 2022
a310b11
Display failure message and exception stack trace
nickspoons Jun 11, 2022
1744716
Add default utf-8 running spinner
nickspoons Jun 11, 2022
ab8ac14
Clean up output and conceal namespaces
nickspoons Jun 12, 2022
e30e990
Extend testrunner quick-help banner
nickspoons Jun 13, 2022
faf95f1
Add <F1> mapping and variable to toggle banner
nickspoons Jun 13, 2022
8bd0abf
Handle server-side errors and failed builds
nickspoons Jun 14, 2022
e719996
Display diagnostic test output (build status)
nickspoons Jun 14, 2022
c15cdcb
Add option for when to display build output
nickspoons Jun 15, 2022
e971f4f
Improve highlighting of concealed elements
nickspoons Jun 16, 2022
0a391ed
Navigate to test locations
nickspoons Jun 16, 2022
977cffe
Add <Plug> and default testrunner mappings
nickspoons Jun 16, 2022
a337246
Add space between projects to fix fold levels
nickspoons Jun 20, 2022
eaed16a
Run test/tests in file/tests in project
nickspoons Jun 23, 2022
1585598
Add F9 mapping to set breakpoints on stacktrace
nickspoons Jun 25, 2022
f9563c1
Add single break-point when error is under cursor
nickspoons Jun 25, 2022
0015541
Debug test from test runner
nickspoons Jun 26, 2022
f2cade1
Add mapping to remove test/file/proj from runner
nickspoons Jun 27, 2022
553bd6f
Refactor test dict from job.tests to s:tests
nickspoons Jun 29, 2022
7772d8b
Add foldtext for testrunner folds
nickspoons Jul 3, 2022
f1f236e
Toggle banner without repainting buffer
nickspoons Jul 14, 2022
479a91a
Update test without repainting buffer
nickspoons Jul 15, 2022
a584620
Only repaint when initializing new tests
nickspoons Jul 15, 2022
7de1e6b
Add success/failure glyph beside completed tests
nickspoons Jul 16, 2022
2a39e1c
Set g:OmniSharp_runtests_echo_output default to 0
nickspoons Jul 19, 2022
2207a9a
Namespace test functions in function dictionaries
nickspoons Jul 19, 2022
543834c
Document g:OmniSharp_runtests_quickfix
nickspoons Jul 19, 2022
9a80471
Add option not to automatically open testrunner
nickspoons Jul 19, 2022
a7e917b
Repaint project output/errors on UpdateState
nickspoons Jul 20, 2022
fe7089e
Center banner title
nickspoons Jul 28, 2022
843761f
Repaint correctly after hiding (removing) project
nickspoons Jul 28, 2022
490991c
Allow selection of running test
nickspoons Aug 13, 2022
ffbdf2e
Document the omnisharp-testrunner feature
nickspoons Aug 29, 2022
ce34c37
Strip method signature from NUnit test name
nickspoons Sep 21, 2022
863c606
Add test Discover function
nickspoons Oct 4, 2022
511af61
"Discover" tests before calling test runners
nickspoons Oct 4, 2022
afe81b1
Update state and repaint multiple NUnit sources
nickspoons Oct 4, 2022
68bcbd4
Correctly run multiple NUnit tests (RunInFile)
nickspoons Oct 29, 2022
7d72d46
Exclude quickfix stack locations from runner
nickspoons Feb 27, 2023
30f79be
Allow opening test runner while test is running
nickspoons Feb 27, 2023
9afbb0d
Add :OmniSharpTestRunnerReset command
nickspoons Apr 24, 2023
14db0b5
Refactor documentation
nickspoons Apr 24, 2023
5058210
Wrap popups at word boundaries by default
nickspoons Apr 24, 2023
e96cb3d
Fix incorrect help tag
nickspoons Oct 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
597 changes: 342 additions & 255 deletions autoload/OmniSharp/actions/test.vim

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions autoload/OmniSharp/popup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ function! s:VimOpen(what, opts) abort
endif
" Prevent popup buffer from being listed in buffer list (`:ls`)
call setbufvar(winbufnr(winid), '&buflisted', 0)
" Make wrapping occur at word boundaries
call setwinvar(winid, '&linebreak', 1)
return winid
endfunction

Expand Down
6 changes: 3 additions & 3 deletions autoload/OmniSharp/preview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ function! OmniSharp#preview#Display(content, title) abort
silent wincmd P
setlocal modifiable noreadonly
setlocal nobuflisted buftype=nofile bufhidden=wipe
0,$d
0,$delete
silent put =a:content
0d_
setfiletype omnisharpdoc
0delete _
set filetype=omnisharpdoc
setlocal conceallevel=3
setlocal nomodifiable readonly
let winid = winnr()
Expand Down
3 changes: 2 additions & 1 deletion autoload/OmniSharp/stdio.vim
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ function! s:HandleServerEvent(job, res) abort

" Diagnostics received while running tests
if get(a:res, 'Event', '') ==# 'TestMessage'
let lines = split(body.Message, '\n')
let lines = split(body.Message, '\r\?\n')
call OmniSharp#testrunner#Log(lines)
for line in lines
if get(body, 'MessageLevel', '') ==# 'error'
echohl WarningMsg | echomsg line | echohl None
Expand Down
Loading