python - Setting up print statement in Tox -


i writing test case scenarios project . in tox.ini have mentioned envlogdir getting logs

[tox] envlogdir = /home/user/testlog 

while running tox ,i getting logs based on installation . need print statements gave in code .

is there way , can print statements in console or in log directory.

or need configure logger write every output in debug or info mode.

can guide.

tox prints standard output on console while executing commands under commands section. tox.ini sample file works me below.

[tox] minversion = 1.6 envlist = py34  [testenv] setenv =      pythonpath = {toxinidir}  commands =      python -c "print('hello srinath')"     python abc.py 

in case, hello srinath gets printed on console. , print abc.py whould on console. hope helps :)


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -