Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to configure tox for getting the logs

Tags:

python

tox

I am trying to use tox automating testing in my project. But I am not able to figure out where the logs or prints from my test_methods in python file goes while using tox. I also grepped the entire tox directory for logs but couldn't find it.

Questions

1) How to configure log directory in tox ?

2) What is the default configuration for logs ?

Any Pointers to the documentation and examples ?

My tox.ini file

 [tox]
 minversion = 1.6
 skipsdist = True

 [testenv]
 skip_install = True
 setenv =
     VIRTUAL_ENV={envdir}
 deps = -r{toxinidir}/test-requirements.txt

 passenv = LANG

 [testenv:test]
 commands = ./test.sh --slowest --testr-args='{posargs}'
like image 372
Knight71 Avatar asked Oct 20 '22 11:10

Knight71


1 Answers

it's not really an answer, but I ended up using asserts.. so instead of

print(type(x))

I do

assert type(x)==1

which gives me

E       AssertionError: assert <class 'tuple'> == 1

... so it's a tuple.. A bit crap but it works

like image 197
Michael Dausmann Avatar answered Oct 21 '22 23:10

Michael Dausmann