On 16/10/2009, at 04:31 , Maciej Fijalkowski fijall-at-gmail.com |py- 
dev + execnet-dev| wrote:

> On Wed, Oct 14, 2009 at 9:56 PM, Simon <5kycsa...@sneakemail.com>  
> wrote:
>> Hi!
>>
>> 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?
>>
>> Thanks,
>>
>> Simon
>
> You know about py.test -s right?
>
> Cheers,
> fijal

Sorry, I wasn't particularly clear.

We generally run our tests with the -v option which is fine, which  
produces a level of output suitable for our general day to day use.

However we would also like to log the complete (-s) output to a file  
in the background. So that if at some point in the future we need to  
go through the detailed output, it is available.

We'd also like this to happen in such a way that if the tests were to  
hang or hard crash halfway through, we still have the debug log.

Any ideas?

Simon
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to