[TIP] testing-in-python Digest, Vol 75, Issue 16

Dan Wandschneider daniel.wandschneider at schrodinger.com
Mon Apr 29 13:10:20 PDT 2013


I don't know if there already an option to do this, but I think it would
probably be easier to use a post-test nose plugin than to rewrite a parser.


On Mon, Apr 29, 2013 at 12:05 PM, <testing-in-python-request at lists.idyll.org
> wrote:

> Send testing-in-python mailing list submissions to
>         testing-in-python at lists.idyll.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.idyll.org/listinfo/testing-in-python
> or, via email, send a message with subject or body 'help' to
>         testing-in-python-request at lists.idyll.org
>
> You can reach the person managing the list at
>         testing-in-python-owner at lists.idyll.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of testing-in-python digest..."
>
> Today's Topics:
>
>    1. Rolling up test results (medford bridges)
>    2. Re: Rolling up test results (John Wong)
>
>
> ---------- Forwarded message ----------
> From: medford bridges <medford.bridges at gmail.com>
> To: testing-in-python at lists.idyll.org
> Cc:
> Date: Mon, 29 Apr 2013 12:23:55 -0400
> Subject: [TIP] Rolling up test results
> Apologies in advance if this is a too opt-asked, frequently answered
> question so I'll keep it really simple.
>
> Given this output from a couple of tests in a couple of files, run by
> nosetests:
>
> ...
> Ran 8 tests in 0.077s
>
> FAILED (failures=4)
>
>
> Is there a option or other tool set to produce something more like this,
> either instead or in addition to basic output?
>
> ...
> SimpleTest1   2/2/0/4 (pass/fail/error/total tests)
> SimpleTest2   2/2/0/4 (pass/fail/error/total tests)
> Summary       4/4/0/8 (pass/fail/error/total tests)
>
>
> In particular, I'd like to be able to track total tests run, pass/fail
> percentages, and more without diving into output parsing.
>
> It would be useful to get a count of tests in a test case file or test
> suite collection, even if some were skipped for various reasons.
>
> Thanks.
>
>
> ---------- Forwarded message ----------
> From: John Wong <gokoproject at gmail.com>
> To: medford bridges <medford.bridges at gmail.com>
> Cc: "testing-in-python at lists.idyll.org" <testing-in-python at lists.idyll.org
> >
> Date: Mon, 29 Apr 2013 13:18:35 -0400
> Subject: Re: [TIP] Rolling up test results
> I think nose has the ability to customize the output. Haven't dived in too
> much.
> But I do know nose-progressive can output pretty nicely.
> https://pypi.python.org/pypi/nose-progressive/
> In particular the option --progressive-advisories you can check it out.
> Search in http://www.verious.com/code/svetlyak40wt/nose-progressive/
>
> BY default it gives you the nice text. Another way I can think of is the
> XML report.
>
> John
>
>
>
> On Mon, Apr 29, 2013 at 12:23 PM, medford bridges <
> medford.bridges at gmail.com> wrote:
>
>> Apologies in advance if this is a too opt-asked, frequently answered
>> question so I'll keep it really simple.
>>
>> Given this output from a couple of tests in a couple of files, run by
>> nosetests:
>>
>> ...
>> Ran 8 tests in 0.077s
>>
>> FAILED (failures=4)
>>
>>
>> Is there a option or other tool set to produce something more like this,
>> either instead or in addition to basic output?
>>
>> ...
>> SimpleTest1   2/2/0/4 (pass/fail/error/total tests)
>> SimpleTest2   2/2/0/4 (pass/fail/error/total tests)
>> Summary       4/4/0/8 (pass/fail/error/total tests)
>>
>>
>> In particular, I'd like to be able to track total tests run, pass/fail
>> percentages, and more without diving into output parsing.
>>
>> It would be useful to get a count of tests in a test case file or test
>> suite collection, even if some were skipped for various reasons.
>>
>> Thanks.
>>
>> _______________________________________________
>> testing-in-python mailing list
>> testing-in-python at lists.idyll.org
>> http://lists.idyll.org/listinfo/testing-in-python
>>
>>
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20130429/3dcb533f/attachment.htm>


More information about the testing-in-python mailing list