ソースを参照

Tests now depends on case 1.3.1

Ask Solem 8 年 前
コミット
368a81d96d
3 ファイル変更38 行追加21 行削除
  1. 18 10
      CONTRIBUTING.rst
  2. 19 10
      docs/contributing.rst
  3. 1 1
      requirements/test.txt

+ 18 - 10
CONTRIBUTING.rst

@@ -511,27 +511,35 @@ the steps outlined here: http://bit.ly/koJoso
 Calculating test coverage
 ~~~~~~~~~~~~~~~~~~~~~~~~~
 
-To calculate test coverage you must first install the ``coverage`` module.
+To calculate test coverage you must first install the ``pytest-cov`` module.
 
-Installing the ``coverage`` module:
+Installing the ``pytest-cov`` module:
 ::
 
-    $ pip install -U coverage
+    $ pip install -U pytest-cov
 
-Code coverage in HTML:
-::
+Code coverage in HTML format
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+#. Run ``py.test`` with the ``--cov-report=html`` argument enabled:
+    ::
+
+        $ py.test --cov=celery --cov-report=html
+
+#. The coverage output will then be located in the ``htmlcov/`` directory:
+    ::
 
-    $ py.test --cov=celery --cov-report=html
+        $ open htmlcov/index.html
 
-The coverage output will then be located at
-``celery/tests/cover/index.html``.
+Code coverage in XML (Cobertura-style)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-Code coverage in XML (Cobertura-style):
+#. Run ``py.test`` with the ``--cov-report=xml`` argument enabled:
 ::
 
     $ py.test --cov=celery --cov-report=xml
 
-The coverage XML output will then be located at ``coverage.xml``
+#. The coverage XML output will then be located in the ``coverage.xml`` file.
 
 .. _contributing-tox:
 

+ 19 - 10
docs/contributing.rst

@@ -520,30 +520,39 @@ the steps outlined here: http://bit.ly/koJoso
 Calculating test coverage
 ~~~~~~~~~~~~~~~~~~~~~~~~~
 
-To calculate test coverage you must first install the :pypi:`coverage` module.
+To calculate test coverage you must first install the :pypi:`pytest-cov` module.
 
-Installing the :pypi:`coverage` module:
+Installing the :pypi:`pytest-cov` module:
 
 .. code-block:: console
 
-    $ pip install -U coverage
+    $ pip install -U pytest-cov
 
-Code coverage in HTML:
+Code coverage in HTML format
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-.. code-block:: console
+#. Run :command:`py.test` with the ``--cov-report=html`` argument enabled:
+
+    .. code-block:: console
+
+        $ py.test --cov=celery --cov-report=html
+
+#. The coverage output will then be located in the :file:`htmlcov/` directory:
+
+    .. code-block:: console
 
-    $ py.test --cov=celery --cov-report=html
+        $ open htmlcov/index.html
 
-The coverage output will then be located at
-:file:`cover/index.html`.
+Code coverage in XML (Cobertura-style)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-Code coverage in XML (Cobertura-style):
+#. Run :command:`py.test` with the ``--cov-report=xml`` argument enabled:
 
 .. code-block:: console
 
     $ py.test --cov=celery --cov-report=xml
 
-The coverage XML output will then be located at :file:`coverage.xml`
+#. The coverage XML output will then be located in the :file:`coverage.xml` file.
 
 .. _contributing-tox:
 

+ 1 - 1
requirements/test.txt

@@ -1,2 +1,2 @@
-case>=1.3.0
+case>=1.3.1
 pytest