<commit_before>=================
Running The Tests
=================

To run the tests, use ``tests/runtests.py``, see ``--help`` for more info.

Examples:

* To run all tests: ``sudo ./tests/runtests.py``
* Run unit tests only: ``sudo ./tests/runtests.py --unit-tests``

You will need 'mock' (https://pypi.python.org/pypi/mock) in addition to salt 
requirements in order to run the tests.


Running The Tests In A Docker Container
=======================================

If the ``runtests.py`` binary supports the ``--docked`` option flag, you can 
choose to execute the tests suite under the provided `docker`_ container. You 
need to have your `docker`_  properly configured on your system and the 
containers need to have access to the internet.

Here's a simple usage example:

.. code-block:: bash

    tests/runtests.py --docked=ubuntu-12.04 -v

You can also provide the full `docker` container repository:

.. code-block:: bash

    tests/runtests.py --docked=salttest/ubuntu-12.04 -v


The SaltStack team is creating some containers which will have the necessary 
dependencies pre-installed allowing you, for example, to run the destructive 
tests without making a single destructive change to your system, or, to run the 
tests suite under a different distribution than the one you're currently using.

You can see the current list of test suite images on our `docker repository`__.

If you with to provide your own `docker`_ container, you can submit pull 
requests against our `docker salt test containers`__ repository.

.. _docker: http://www.docker.io/
.. __: https://index.docker.io/u/salttest/
.. __: https://github.com/salttest/docker-salttest-containers


=============
Writing Tests
=============<commit_msg>Typo.<commit_after>=================
Running The Tests
=================

To run the tests, use ``tests/runtests.py``, see ``--help`` for more info.

Examples:

* To run all tests: ``sudo ./tests/runtests.py``
* Run unit tests only: ``sudo ./tests/runtests.py --unit-tests``

You will need 'mock' (https://pypi.python.org/pypi/mock) in addition to salt 
requirements in order to run the tests.


Running The Tests In A Docker Container
=======================================

If the ``runtests.py`` binary supports the ``--docked`` option flag, you can 
choose to execute the tests suite under the provided `docker`_ container. You 
need to have your `docker`_  properly configured on your system and the 
containers need to have access to the internet.

Here's a simple usage example:

.. code-block:: bash

    tests/runtests.py --docked=ubuntu-12.04 -v

You can also provide the full `docker` container repository:

.. code-block:: bash

    tests/runtests.py --docked=salttest/ubuntu-12.04 -v


The SaltStack team is creating some containers which will have the necessary 
dependencies pre-installed allowing you, for example, to run the destructive 
tests without making a single destructive change to your system, or, to run the 
tests suite under a different distribution than the one you're currently using.

You can see the current list of test suite images on our `docker repository`__.

If you wish to provide your own `docker`_ container, you can submit pull 
requests against our `docker salt test containers`__ repository.

.. _docker: http://www.docker.io/
.. __: https://index.docker.io/u/salttest/
.. __: https://github.com/salttest/docker-salttest-containers


=============
Writing Tests
=============
{'fraction_non_alphanumeric': 0.14521739130434783, 'fraction_numerical': 0.00463768115942029, 'mean_word_length': 4.135416666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5971363', 'n_tokens_mistral': 1022, 'n_tokens_neox': 945, 'n_words': 416}