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
Post a Comment