Closed joeveiga closed 3 years ago
Thanks for the great report! I believe your guess is exactly correct, there is a feature that allows for running all tests together but only if the output can be parsed to get the individual results. I've added the ability to opt of this (g:ultest_disable_grouping
). It'll mean that all tests run as separate processes but unfortunately there is no way for the plugin to know the namespace structure to run together.
@rcarriga Thanks for the quick response! I had an issue with the config option but it looks like it's working as expected now. Although, I'm curious about what the issue is with dynamic names. Do you use the source files for something, or just parse the output of the test runner (or vim-test)? If it's the later, both outputs look identical to me so I don't see what the issue is there. For example, this is the output from running :TestFile
on that file:
vim-test (and thus vim-ultest) is built entirely on matching regex expressions against source files to discover namespaces and tests. vim-ultest uses these matches to display the correct results by matching the names in the output. If the static file doesn't match to the output then there is no way (that I'm aware of) to figure out which tests fail. If the tests are run individually then the exit code of the process is enough to know the result, meaning the output doesn't have to match.
Describe the bug
Hey @rcarriga 👋 ! First of all, great plugin! It's making it real easy to use
vim-test
. I'm using it withjest
in an Angular project and it's working great so far. I did run into an issue though: When trying to use dynamic values in the string describing my test suite/case, the plugin fails to mark a failed test as failed. My guess is there is some sort of namespacing issue there. Please see the following snippet, and the attached screenshots bellow showing the faulty behavior. Thanks!vim-ultest.log
To Reproduce Copy the provided code snippet and run
:Ultest
on it.Expected behavior Plugin should handle dynamic values in suite/test descriptions correctly.
Screenshots
Additional context