Kamil asked a good question in his review of the code for comment spam
reduction that made me realize that I haven't done enough explaining of
how the unit test code is currently working.
The question was whether python-virtualenv and python-pip (required for
running 'make test') should be listed as build dependencies in autoqa.spec.
My feeling on this is 'probably not' because of the way that those
dependencies are being used. I'm open to other ideas, though.
The current way that I have implemented 'make test' does the following:
- create virtualenv if it doesn't already exist
* install required packages (py.test etc.) if the env is being
created
- activate virtualenv
- run tests
- deactivate virtualenv
The main reason that I wrote it this way is that an appropriate version
of py.test still hasn't been reviewed for inclusion in Fedora and the
version that does exist is not new enough to run these tests. I dropped
the ball on that one and once we get 0.5.0 released, I will resume work
on getting the needed packages reviewed so that they get into rawhide
before F16 branch.
I'm not sure that we want to be using virtualenv or pip during rpm
packaging. I think that I would rather see direct execution of the tests
during rpm build and I'm not even sure that the use of virtualenv for
'make test' is acceptable for Fedora packaging standards. Then again,
AutoQA isn't a Fedora package yet so maybe we don't want to worry about
this now.
Thoughts?
Tim