On 09/19/11 - 10:29:19AM, James Laska wrote:
Greetings,
The following patches represent another take at adding py.test support into the
current oz.git unittest framework. I tried several methods of using stock
python 'unittest', however it always felt very kludgy to instrument
'yield'
support into unittest. Additionally, the test output for xfail results in
unittests was sub-optimal. Support for the 'yield' generator is essential for
the current structure of tests to support enumerating over expected pass/fail
results. After discussions with Chris, I opted to stick with py.test since it
required much less fiddling (imo) yet is still documented.
This round of patches addresses Chris' concerns regarding ...
1) Virtualenv support should be optional
2) Don't get fancy with a test.cfg ConfigParser
3) Support for running tests individually
Some additional changes include:
* Integration with distutils. Tests can also be run with 'python setup.py
test'
* Py.test native support for junit test output (jenkins likey!)
This looks great. I tested it out locally, and besides having to install
the python-py package, there were no additional dependencies. Thanks for
bearing with me while I came to terms with a testing framework. ACK, and
I've pushed this to Oz git now.
--
Chris Lalancette