Skip to content

How to split nosetest test results with success to stdout and failure\error to stderr? Need to have custom TextTestRunner

Notifications You must be signed in to change notification settings

poliarush/nose-split-stderr-stdout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem

Nose take all output\errors and print in one defined stream. You can't split printing if you need to split success messages to stdout and failure\errors to stderr.

Solution

Implement custom TextTestRunner and TextTestResult to not give nosetest intercepts real stream. Just need to replace it with fake one for example StringIO.

Similar

to capture stderr https://github.com/thkoch2001/nose/commit/c3d3dbf796eeed933b130644b259004ceae04f80 anyway, it writes all to one stream due to nature of nosetests

About

How to split nosetest test results with success to stdout and failure\error to stderr? Need to have custom TextTestRunner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published