summaryrefslogtreecommitdiff
path: root/doc/rtd/topics/testing.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/rtd/topics/testing.rst')
-rw-r--r--doc/rtd/topics/testing.rst13
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/rtd/topics/testing.rst b/doc/rtd/topics/testing.rst
index d882e036..7a1e3eec 100644
--- a/doc/rtd/topics/testing.rst
+++ b/doc/rtd/topics/testing.rst
@@ -3,8 +3,7 @@ Testing
*******
cloud-init has both unit tests and integration tests. Unit tests can
-be found in-tree alongside the source code, as well as
-at ``tests/unittests``. Integration tests can be found at
+be found at ``tests/unittests``. Integration tests can be found at
``tests/integration_tests``. Documentation specifically for integration
tests can be found on the :ref:`integration_tests` page, but
the guidelines specified below apply to both types of tests.
@@ -36,6 +35,16 @@ Test Layout
subclass (indirectly) from ``TestCase`` (e.g.
`TestPrependBaseCommands`_)
+* Unit tests and integration tests are located under cloud-init/tests
+
+ * For consistency, unit test files should have a matching name and
+ directory location under `tests/unittests`
+
+ * For example: the expected test file for code in
+ `cloudinit/path/to/file.py` is
+ `tests/unittests/path/to/test_file.py`
+
+
``pytest`` Tests
----------------