<commit_before>==============
Testing Basics
==============

OpenHatch strives to follow best practices for testing. One
common practice in the Python community is Test Driven Development (TDD).
In TDD, a developer will write a test for a new feature before creating
the feature's source code.


Running the OpenHatch test suite
################################

You may run the test suite to see if all tests pass before you begin
making changes to the code. To run the test suite,::

    python manage.py test

The test suite begin running all of the tests and will display the test
progress in the console window.


Running the test suite without warnings
#######################################

You may run the test suite and turn off warnings, such as Deprecation Warnings, 
being output to your screen. To run the test suite without warnings,::

    python -Wignore manage.py test

The test suite will display its progress on the console but will not display
any warnings.


Running a subset of tests
#########################

If you are working on a particular area of the source code, you may find
it helpful to run a subset of the tests. You may pass an argument after
the ``python manage.py test`` command.

Currently, you may pass one or more of the following arguments: `account`,
`base`, `missions`, `project`, `search`, and `customs`. For example,::

    python manage.py test missions

will run all the tests related to the OpenHatch missions.<commit_msg>Fix minor formatting error in testing basics doc<commit_after>==============
Testing Basics
==============

OpenHatch strives to follow best practices for testing. One
common practice in the Python community is Test Driven Development (TDD).
In TDD, a developer will write a test for a new feature before creating
the feature's source code.


Running the OpenHatch test suite
################################

You may run the test suite to see if all tests pass before you begin
making changes to the code. To run the test suite,::

    python manage.py test

The test suite begin running all of the tests and will display the test
progress in the console window.


Running the test suite without warnings
#######################################

You may run the test suite and turn off warnings, such as "deprecation
warnings", being output to your screen. To run the test suite without
warnings,::

    python -Wignore manage.py test

The test suite will display its progress on the console but will not display
any warnings.


Running a subset of tests
#########################

If you are working on a particular area of the source code, you may find
it helpful to run a subset of the tests. You may pass an argument after
the ``python manage.py test`` command.

Currently, you may pass one or more of the following arguments: `account`,
`base`, `missions`, `project`, `search`, and `customs`. For example,::

    python manage.py test missions

will run all the tests related to the OpenHatch missions.
{'fraction_non_alphanumeric': 0.12281879194630872, 'fraction_numerical': 0.0, 'mean_word_length': 4.489871086556169, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4214651', 'n_tokens_mistral': 724, 'n_tokens_neox': 694, 'n_words': 444}