alfredodeza / pytest.vim

Runs your UnitTests with py.test displaying red/green bars and errors
274 stars 40 forks source link

include stderr from conftest in async and catch error with regex #76

Closed alfredodeza closed 3 years ago

alfredodeza commented 3 years ago

This was a tricky one. By default system() produces both stderr and stdout, but because pytest.vim is using async behavior, then the channels must be read separately.

This PR adds support for reading stderr and including the stdout for parsing as well as using a separate regex to capture these types of breakage that happen outside of a test as it happens in conftest.py for example.

Fixes: