[py-dev] Log to a file
holger krekel
holger at merlinux.eu
Thu Oct 15 09:33:18 CEST 2009
Hi Simon,
On Thu, Oct 15, 2009 at 03:56 -0000, Simon wrote:
> I would like to capture the verbose output of test runs to a file so that the debug is captured to a file regardless of whether the test failed or when the test is not running to completion.
>
> Is there an easy way of doing this via a command line option, or should I be perhaps modifying the resultlog plugin or something similar?
if you are using unix, you could do: "py.test ... | tee -a log"
on windows there might be something similar.
Otherwise maybe indeed the resultlog plugin could grow some feature.
In fact i'd like to have result logging happen to a directory and
then be able to query it without running tests.
best,
holger
More information about the Pytest-dev
mailing list