]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add pointers to access Neutron test coverage details
authorarmando-migliaccio <armamig@gmail.com>
Thu, 8 Oct 2015 18:43:26 +0000 (11:43 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Thu, 8 Oct 2015 19:26:27 +0000 (12:26 -0700)
Being aware of what the coverage looks like should help
writing more comprehensive tests.

Change-Id: Idd31edb2695d6b2b3475bfd3b2e9eafd6c12ba8e

TESTING.rst

index d29728cf42c1f3ee3967e474156a8dc260273794..d71fa220e154648939761140ed6f2715150a53aa 100644 (file)
@@ -309,9 +309,20 @@ current unit tests coverage by running::
 
     $ ./run_tests.sh -c
 
+or by running::
+
+    $ tox -ecover
+
 Since the coverage command can only show unit test coverage, a coverage
 document is maintained that shows test coverage per area of code in:
-doc/source/devref/testing_coverage.rst.
+doc/source/devref/testing_coverage.rst. You could also rely on Zuul
+logs, that are generated post-merge (not every project builds coverage
+results). To access them, do the following:
+
+  * Check out the latest `merge commit <https://review.openstack.org/gitweb?p=openstack/neutron.git;a=search;s=Jenkins;st=author>`_
+  * Go to: http://logs.openstack.org/<first-2-digits-of-sha1>/<sha1>/post/neutron-coverage/.
+  * `Spec <https://review.openstack.org/#/c/221494/>`_ is a work in progress to
+    provide a better landing page.
 
 Debugging
 ---------