[TIP] NoseTests xUnit with test times

Tim Aerdts fragger123 at gmail.com
Wed Oct 31 00:14:27 PDT 2012

Hello Prasanna,

For me it seems like this is enabled by default.

<testsuite name="nosetests" tests="3" errors="0" failures="0" skip="0">
 <testcase classname="test_someclass" name="test_some_method" time="2.042"
<testcase classname="test_someclass" name="test_some_other" time="0.058" />
 <testcase classname="test_someclass" name="test_some_other" time="0.022" />

I run my nosetests with the following parameters.

nosetests --with-xunit --verbose --with-coverage --cover-xml

Hope this helps your case.

On Wed, Oct 31, 2012 at 7:27 AM, Prasanna Santhanam <
prasanna.santhanam at citrix.com> wrote:

> Hi All,
> Is it possible to retrieve the time for each test fixture when using
> the nosetests xunit plugin? By default I didn't see any options on the
> cmd line for doing this.
> I've used unittest-xml-reporting with some success and it reports the
> fixture run times which is quite useful for optimizing and speeding up
> tests.
> Thanks,
> --
> Prasanna.,
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python

Kind regards,
Tim Aerdts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20121031/c08c2665/attachment-0001.htm>

More information about the testing-in-python mailing list