mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
The documentation for 'Developing Salt' is missing a critical step for 0.17+ users who wish to utilize the test runner. This commit describes the direct installation of salt-testing.
Forthcoming will be a re-write what appears to be a new method for establishing a development environment through the use of dev_requirements_python2(6|7).txt, once I have a chance to verify that the workflow is as expected.
This commit is contained in:
parent
bd1da286ac
commit
766b3f405d
@ -361,6 +361,22 @@ If you are on Python < 2.7 then you will also need unittest2:
|
||||
|
||||
pip install unittest2
|
||||
|
||||
|
||||
.. note::
|
||||
|
||||
In Salt 0.17, testing libraries were migrated into their own repo. To install them:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
pip install git+https://github.com/saltstack/salt-testing.git#egg=SaltTesting
|
||||
|
||||
|
||||
Failure to install SaltTesting will result in import errors similar to the following:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
ImportError: No module named salttesting
|
||||
|
||||
Finally you use setup.py to run the tests with the following command:
|
||||
|
||||
.. code-block:: bash
|
||||
|
Loading…
Reference in New Issue
Block a user