[openstack-dev] [Fuel] [Nailgun] Unit tests improvement meeting minutes

Ivan Kliuk ikliuk at mirantis.com
Fri Nov 28 16:15:34 UTC 2014


Hi, team!

Let me please present ideas collected during the unit tests improvement 
meeting:
1) Rename class ``Environment`` to something more descriptive
2) Remove hardcoded self.clusters[0], e.t.c from ``Environment``. Let's 
use parameters instead
3) run_tests.sh should invoke alternate syncdb() for cases where we 
don't need to test migration procedure, i.e. create_db_schema()
4) Consider usage of custom fixture provider. The main functionality 
should combine loading from YAML/JSON source and support fixture inheritance
5) The project needs in a document(policy) which describes:
     - Tests creation technique;
     - Test categorization (integration/unit) and approaches of testing 
different code base
     -
6) Review the tests and refactor unit tests as described in the test policy
7) Mimic Nailgun module structure in unit tests
8) Explore Swagger tool <http://swagger.io/>

-- 
Sincerely yours,
Ivan Kliuk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141128/9451332a/attachment.html>


More information about the OpenStack-dev mailing list