Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test status in status bar/gutter #104

Closed
RomainEndelin opened this issue Apr 8, 2016 · 6 comments
Closed

Test status in status bar/gutter #104

RomainEndelin opened this issue Apr 8, 2016 · 6 comments

Comments

@RomainEndelin
Copy link

First, thanks for the great plugin, it really "Does the right thing" 馃槃.

I see Neoterm has a feature to show whether a test passes, straight from the status bar:

Neoterm

In the same idea, we could imagine to see the status of tests in the quickfix panel, or/and in the gutter.

These would add a lot to the testing workflow. I'm not sure whether it would be realistic to implement though : as far as I can see, vim-test doesn't implement a mechanism to check whether a test passes or not.

@janko
Copy link
Member

janko commented Apr 8, 2016

If you want this mechanism in test.vim, you can simply use the neoterm strategy, or use vim-makegreen as a custom strategy. Both of these plugins have a mechanism notifying whether the shell command succeeded or not, and I think you should be able to display this status in a quickfix panel and/or in the gutter.

Implementing this mechanism is out of scope for this plugin. Test.vim's only job is to compose a test command and send it to a strategy, and then it's the responsibility of the strategy to provide some hooks which indicate the status of the command.

@nomasprime
Copy link
Contributor

@janko do know if anyone figured this out?

@janko
Copy link
Member

janko commented Jan 31, 2020

Have you tried using the Neoterm strategy, and configuring it to display test status?

@nomasprime
Copy link
Contributor

@janko thanks, got this pretty much figured out with Neomake, which is preferable.

Last piece of the puzzle is eliminating escape characters and multiple whitespaces from output, see neomake/neomake#2459.

@MarcelRobitaille
Copy link

@nomasprime where you able to get the results in the gutter or just in the quickfix list? I tried dispatch and noemake and neither is showing anything in the gutter. I would really love to quickly see which line is failing in the gutter or inline with virtual text similar to lsp.

@nomasprime
Copy link
Contributor

nomasprime commented Jun 11, 2021

Hi @MarcelRobitaille, was generally working but fiddly to setup and extra dependencies made it too brittle for my liking (eg, this issue).

Also, while quickfix was quite nice, I found adding to the gutter was just too noisy combined with other diagnostics.

These days I use coc-diagnostic and vim-test with VTR. Scanning and jumping with standard vim keys is just as fast but avoiding these issues combined with finding it easier to resolve failing tests with the full output frequently anyway make this setup more efficient overall.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants