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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -