[openstack-dev] Pip and test requires files??

Joshua Harlow harlowja at yahoo-inc.com
Mon Sep 24 21:33:03 UTC 2012

Sweet, maybe another conference topic.

On 9/24/12 12:38 PM, "Monty Taylor" <mordred at inaugust.com> wrote:

>On 09/24/2012 02:33 PM, Joshua Harlow wrote:
>> Hi all,
>> I am wondering if we can get some standardization on what should go in
>> the test-requires file and what should not. I've noticed a lot of
>> cross-project dependencies show up in those files (X requires Y for
>> testing so pull it in) or recently nova starting asking for
>> 'python-ldap' for tests. Those kind of dependencies seem sort of odd in
>> that depending on a ldap server for unit tests (or is it an integration
>> test) seems to be wrong (mocking ftw). Perhaps we should split up this
>> into 3 files, #1 pip-requires for what is actually needed for the main
>> piece of software (core dependencies), #2 for what is needed for tests
>> (should match 1 + things like nose, since mocking is available) and #3
>> what is needed for functional tests (python-ldap? and such which can't
>> be mocked at this stage easilyŠ), ie a functional-requires file.
>I'd be in favor of that or something similar. Also, we do have a
>test-options in use out there which contains things that will optionally
>be used if they are there in the test suite (MySQLdb is a good example
>here) but will not cause the test suite to bomb out if they are not there.
>> Do others think this would be useful? Right now its hard to know whats
>> really needed for unit testing and whats not since they are combined at
>> the hipŠ Imho I'd almost consider it bugs if #2 there contains external
>> dependencies as well (everything should be mocked out).
>> -Josh
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>OpenStack-dev mailing list
>OpenStack-dev at lists.openstack.org

More information about the OpenStack-dev mailing list