[openstack-dev] [Quantum] Question on unit tests
Salvatore Orlando
sorlando at nicira.com
Wed Feb 6 20:21:10 UTC 2013
Hi,
As some of you have noticed, the number of unit tests arose to above
3,000 with recent merges.
The XML support is adding most of them, by doing something similar to
what the API tests for Quantum v1 did (execute the whole test cases
with both format).
While I understand and support this approach, there are two things to be noted:
- Unit test execution times have more than doubled
- With Quantum v2 we adopted a slightly different approach, by
separating API and DB tests. The formers tests (that we have for the
core API as well as many extensions) are the ones aimed at validating
correct serialization/deserialization. If we keep following this
approach, we might be able to save a lot of format-specific unit tests
for DB logic. From my perspective I don't think we will be losing any
coverage - but I might be missing something fundamental.
I recall Aaron and BobK in recent posts were suggesting to move to
parallel testing; this one of the first things we should address in
Havana. In the meanwhile, let me know if you think we can do something
to reduce the amount of resources used by unit tests.
I am also noticing that the memory leaks which were reduced a lot
during G-1 are hitting again, on low memory workers (2Gb); probably no
new leak has been introduced, it's just that the effect of the few
ones which were left it's now being felt more.
Salvatore
More information about the OpenStack-dev
mailing list