Re: [Zope3-Users] using zope.testing's testrunner outside of zope

2008-02-04 Thread Chris Withers

Stephan Richter wrote:

On Friday 01 February 2008, Chris Withers wrote:

Stephan Richter wrote:

If you use buildout, there is a recipe for creating a test runner. See

http://svn.zope.org/zope.kgs/trunk/?rev=83325

for a good example.

Where's the actual test runner or test runner creater?


[test]
recipe = zc.recipe.testrunner
eggs = zope.kgs [test]


Ah, okay, so what actually is zc.recipe.testrunner?
I thought the testrunner was in zope.testing.testrunner...

I feel like I'm missing a lot here, is there documentation I can read to 
catch up on this?



Also, what's the best way to indicate in setup.py that my package needs
zope.testing for the tests?

There is a test option, where you can list all packages that should be
installed for testing. See

http://svn.zope.org/zope.component/trunk/setup.py?rev=81358view=auto

What's the difference between tests_require and extras_require['test']?


tests_require contains a list of test dependencies that setuptools uses for 
its integrated test support. Unfortunately, this lsit is not exposed, so 
buildout cannot use it. So instead, we use extras_require['test'] to 
provide that same list.


Ah, okay... so I only need to worry about extras_require if I want to 
support buildout?


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] using zope.testing's testrunner outside of zope

2008-02-02 Thread Stephan Richter
On Friday 01 February 2008, Chris Withers wrote:
 Stephan Richter wrote:
  If you use buildout, there is a recipe for creating a test runner. See
 
  http://svn.zope.org/zope.kgs/trunk/?rev=83325
 
  for a good example.

 Where's the actual test runner or test runner creater?

[test]
recipe = zc.recipe.testrunner
eggs = zope.kgs [test]

  Also, what's the best way to indicate in setup.py that my package needs
  zope.testing for the tests?
 
  There is a test option, where you can list all packages that should be
  installed for testing. See
 
  http://svn.zope.org/zope.component/trunk/setup.py?rev=81358view=auto

 What's the difference between tests_require and extras_require['test']?

tests_require contains a list of test dependencies that setuptools uses for 
its integrated test support. Unfortunately, this lsit is not exposed, so 
buildout cannot use it. So instead, we use extras_require['test'] to 
provide that same list.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] using zope.testing's testrunner outside of zope

2008-02-01 Thread Chris Withers

Stephan Richter wrote:
If you use buildout, there is a recipe for creating a test runner. See 


http://svn.zope.org/zope.kgs/trunk/?rev=83325

for a good example.


Where's the actual test runner or test runner creater?


Also, what's the best way to indicate in setup.py that my package needs
zope.testing for the tests?


There is a test option, where you can list all packages that should be 
installed for testing. See


http://svn.zope.org/zope.component/trunk/setup.py?rev=81358view=auto


What's the difference between tests_require and extras_require['test']?

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] using zope.testing's testrunner outside of zope

2008-01-30 Thread Stephan Richter
On Wednesday 05 December 2007, Chris Withers wrote:
 I've come to realise that a lot of the python packages I've developed
 for use outside of zope (twiddler and mailinglogger spring to mind) rely
   on zope.testing and work best with the testrunner in zope.testing.

 What's the best way to use this in a non-zope environment?

If you use buildout, there is a recipe for creating a test runner. See 

http://svn.zope.org/zope.kgs/trunk/?rev=83325

for a good example.

 Also, what's the best way to indicate in setup.py that my package needs
 zope.testing for the tests?

There is a test option, where you can list all packages that should be 
installed for testing. See

http://svn.zope.org/zope.component/trunk/setup.py?rev=81358view=auto

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] using zope.testing's testrunner outside of zope

2007-12-05 Thread Chris Withers

Hi All,

I've come to realise that a lot of the python packages I've developed 
for use outside of zope (twiddler and mailinglogger spring to mind) rely 
 on zope.testing and work best with the testrunner in zope.testing.


What's the best way to use this in a non-zope environment?

Also, what's the best way to indicate in setup.py that my package needs 
zope.testing for the tests?


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users