Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

how do I only run test from one doctest .txt file?

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


chris at simplistix

Sep 10, 2009, 2:40 AM

Post #1 of 3 (530 views)
Permalink
how do I only run test from one doctest .txt file?

Hi All,

I'm doing some development of zc.buildout, and I'm down to a couple of
test failures. The test suite takes quite a long time to run.

Using zc.recipe.testrunner, how can I limt the run to just one file?

eg:
File "...src/zc/buildout/bootstrap.txt", line 23, in bootstrap.txt

How do I just run the tests in bootstrap.txt?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


wichert at wiggy

Sep 10, 2009, 2:40 AM

Post #2 of 3 (493 views)
Permalink
Re: how do I only run test from one doctest .txt file? [In reply to]

On 9/10/09 11:40 , Chris Withers wrote:
> Hi All,
>
> I'm doing some development of zc.buildout, and I'm down to a couple of
> test failures. The test suite takes quite a long time to run.
>
> Using zc.recipe.testrunner, how can I limt the run to just one file?
>
> eg:
> File "...src/zc/buildout/bootstrap.txt", line 23, in bootstrap.txt
>
> How do I just run the tests in bootstrap.txt?

With Zope2 you can do this: bin/instance test -t bootstrap.txt
Perhaps -t works here as well?

Wichert.
_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


chris at simplistix

Sep 10, 2009, 2:42 AM

Post #3 of 3 (498 views)
Permalink
Re: how do I only run test from one doctest .txt file? [In reply to]

Wichert Akkerman wrote:
>> How do I just run the tests in bootstrap.txt?
>
> With Zope2 you can do this: bin/instance test -t bootstrap.txt
> Perhaps -t works here as well?

Indeed it does, thanks for the quick reply! :-)
(if anyone's got a zope.testing checkout handy, it might be worth
documenting this in the help for the -t option...)

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.