-
Notifications
You must be signed in to change notification settings - Fork 15
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ultest does nothing silently #102
Comments
There are two bugs around. With the following test suite:
It can detect only one test method because the method is using camel-case naming convention:
which should be also detected, as in plain pytest runnre and in vim-test. Also, when there is no test method detected in any either case, it should say informative some error message. Hope this helps. Or any message about progress -- e.g., test is running, has completed. |
For the first one, test pattern are specified in
For python, we by default have let g:test#python#patterns = {
- \ 'test': ['\v^\s*%(async )?def (test_\w+)'],
+ \ 'test': ['\v^\s*%(async )?def (test\w+)'],
\ 'namespace': ['\v^\s*class (\w+)']
\} It was not very obvious to figure out. It would be great to add some warning messages when no tests were detected, and/or execution of test operations. |
Hi thanks for looking into this.
This is actually not correct, using
I don't think is necessary since the summary already shows what has been detected. There is no further information that vim-ultest can show. For your actual problem of camel case names, this has come up before and there's nothing vim-ultest can do as this is a vim-test problem (See #39 (comment)). To demonstrate this is vim-test you can use this file def test_a():
assert True
def testB():
assert False and run |
Describe the bug
When I run
:UltestNearest
, or any commands that would run test cases, it does nothing and no error messages are produced.Log files:
:UltestSummary
also does not print anything -- it shows nothing but the file name.To Reproduce
My plugin config:
I did not have any other configurations.
Expected behavior
Something runs, or error messages are produced.
Screenshots
N/A
Additional context
vim-test
commands:TestNearest
works fine, running in a new tab.Where should I start troubleshooting?
The text was updated successfully, but these errors were encountered: