Nosetests Is Capturing The Output Of My Print Statements. How To Circumvent This?
When I type $ nosetests -v mytest.py all my print outputs are captured when all tests pass. I want to see print outputs even everything passes. So what I'm doing is to force an as
Solution 1:
Either:
$ nosetests --nocapture mytest.py
Or:
$ NOSE_NOCAPTURE=1 nosetests mytests.py
(it can also be specified in the nose.cfg
file, see nosetests --help
)
Solution 2:
Use
--nologcapture
it worked for me
Solution 3:
This was added recently to nose instead of --nocapture
do this:
nosetests -s
Solution 4:
In order to integrate with http://travis-ci.org I have put this into .travis.yml:
script: "python setup.py nosetests -s"
where setup.py contains:
setup(
...
tests_require=['nose>=1.0'],
test_suite='nose.collector',
)
Solution 5:
Try this,
nosetests -v 2 -s yourtest
Flags expect order.
Post a Comment for "Nosetests Is Capturing The Output Of My Print Statements. How To Circumvent This?"