question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about the relationship to vim-test

See original GitHub issue

Describe the bug For a go test file, the commands don’t seem to work properly.

Let’s say I open a ..._test.go file, when I run :TestFile, it runs all the tests, and when I do :TestNearest, it correctly run the test I’m in using the following command (I’m using richgo for my go tests):

richgo test -run '\''MyTest$'\'' ./parent/child/current'; richgo test -run 'MyTest$' ./parent/child/current

However, when I do :UltestNearest, I see no Go files in /parent

I open vim in ./parent directory and I go to the file ./parent/child/current/file_test.go, and that’s where I’m trying to run the tests

Also, I’m not sure if I see this error because of what’s happening above, but I thought I mention this too.

When I run :UltestSummary, I see the following error:

Error detected while processing function ultest#summary#toggle[4]..ultest#summary#open[2]..<SNR>484_OpenNewWindow[29]..<SNR>484_FullRender[2]..<SNR>484_Clear:
line    2:
E118: Too many arguments for function: clearmatches

To Reproduce I think the explanation covers this part

Expected behavior I was expecting for vim-ultest to mimic what vim-test does, with added features

Screenshots Here’s a screenshot of the output. Maybe it’s worth noting that the right border of the box seems to be missing inside tmux. when I run it outside of tmux, the box seems to be fine … actually, I lied! I exited and tried again and it was find inside of tmux, but I’m keeping the screenshot just in case 🙂 image


Sorry if I’m bothering you with all the issues I’m creating, but the plugin seems to be very promising and useful I’m doing my best to use it, but I’m not able to succeed

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
farzadmfcommented, Mar 8, 2021

I appreciate it @rcarriga for you being super fast at replying and resolving these issues. Keep it up 👍

1reaction
rcarrigacommented, Mar 8, 2021

Oh sorry about that didn’t realise there is an issue with 8.1 patch detection (found it here https://github.com/neovim/neovim/issues/9635), I’ve added a check for nvim 0.5.0 which should work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · vim-test/vim-test - GitHub
Issues list ; Run :TestSuite in the desired test folder. #704 opened 2 weeks ago · curkan ; dispatch strategy does not populate...
Read more >
vim-test :TestSuite return message Not a test file
So I found the issue and a workaround. The issue is on Windows the path separator is \ and not / as is...
Read more >
Vim test if options are valid before setting - Ask Ubuntu
I know I can use if has('mouse') to test if mouse support is enabled. Is there a similar test I can do for...
Read more >
Supercharging Vim: Instant testing - Matt Layman
My former co-worker at Storybird, Ben Johnson, introduced me to a Vim plugin called vim-test. This plugin dramatically changed my relationship with ...
Read more >
[SOLVED] Why is VIM's Test Suite Crap? - LinuxQuestions.org
I'm talking about when you build VIM from source... The test suite (make check) is either broken or garbage that needs replaced.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found