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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include :messages in failure output #71

Open
flwyd opened this issue Oct 28, 2021 · 0 comments
Open

Include :messages in failure output #71

flwyd opened this issue Oct 28, 2021 · 0 comments

Comments

@flwyd
Copy link

flwyd commented Oct 28, 2021

Is your feature request related to a problem?

One of my tests is failing. The function reports possible problems using a logger that basically does echomsg. I would like to see those log statements to troubleshoot the test, but the themis command just reports that my function returned an empty list instead of my expected value.

Describe the solution you'd like

It would be nice if there was an option to include the output of :messages (with the exception of the Maintainer line at the beginning) along with the assertion errors in the reporter output for failing tests.

This could be accomplished with something like calling messages clear before each test, then capturing messages after the test with

let save_reg = getreg('m')
redir @m
silent messages
redir END
call setreg('m', save_reg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant