Add note about integration tests for new modules to the dev guide (#71345)
This commit is contained in:
parent
705c666521
commit
b82889eef5
2 changed files with 8 additions and 0 deletions
|
@ -163,6 +163,10 @@ Testing your newly-created module
|
||||||
The following two examples will get you started with testing your module code. Please review our :ref:`testing <developing_testing>` section for more detailed
|
The following two examples will get you started with testing your module code. Please review our :ref:`testing <developing_testing>` section for more detailed
|
||||||
information, including instructions for :ref:`testing module documentation <testing_module_documentation>`, adding :ref:`integration tests <testing_integration>`, and more.
|
information, including instructions for :ref:`testing module documentation <testing_module_documentation>`, adding :ref:`integration tests <testing_integration>`, and more.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
Every new module and plugin should have integration tests, even if the tests cannot be run on Ansible CI infrastructure.
|
||||||
|
In this case, the tests should be marked with the ``unsupported`` alias in `aliases file <https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/integration-aliases.html>`_.
|
||||||
|
|
||||||
Performing sanity tests
|
Performing sanity tests
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,10 @@ Some tests may require credentials. Credentials may be specified with `credenti
|
||||||
|
|
||||||
Some tests may require root.
|
Some tests may require root.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
Every new module and plugin should have integration tests, even if the tests cannot be run on Ansible CI infrastructure.
|
||||||
|
In this case, the tests should be marked with the ``unsupported`` alias in `aliases file <https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/integration-aliases.html>`_.
|
||||||
|
|
||||||
Quick Start
|
Quick Start
|
||||||
===========
|
===========
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue