Tests and logging - pytest-capturelog

Mads Kiilerich mads at kiilerich.com
Tue May 24 19:13:47 UTC 2016


Hi

Writing or debugging Kallithea tests can be frustrating. One reason is 
that there is no logging (AFAICS).

I just found

pip install pytest-capturelog

which will make log output show up for failing tests. That seems to be 
very helpful! (It would perhaps be even more helpful if it showed up 
interleaved with stdout output ... but that is no big deal.)

Does this trick work for you too? Or do you have other similar tricks?

/Mads



More information about the kallithea-general mailing list