<commit_before>===============
 nose-mp-split
===============

This plugin adds ``_multiprocess_can_split_ = True`` to each of your test
classes and modules. That's all. This tells nose's multiprocess plugin that it
doesn't need to run all of a class's tests in the same process. Nose will then
distribute test cases from the same class (or module) across different
processes. It was written in response to behavior demonstrated here_.

When it's safe to use with your tests, this plugin is so cool!

- There's no need to edit your tests to contain a nose-specific flag.
- It evenly distributes test cases (rather than test classes) across processes.
  This utilizes worker process better to speed up test runs, especially if one
  class has many tests cases and takes much longer to run than the others.
- It produces more responsive output. Since nose runs test *classes* in worker
  processes, it waits until each class has finished before printing the results
  for that class. This plugin ensures the results of a test case are printed
  immediately after that test has finished.

You can use this plugin when you know your tests are safe to run in parallel.
For instance, don't use this plugin if you have test fixtures that cannot
be run repeatedly and concurrently in multiple processes.

Quickstart
==========

.. code-block:: shell

    $ pip install nose-mp-split
    $ nosetests --mp-split-all --processes=4 mytests/

``nose-mp-split`` has no effect when not running tests in multiple processes.

.. _here: https://github.com/pglass/nosemultiprocess-test
<commit_msg>Add travis build status badge<commit_after>===============
 nose-mp-split
===============

.. image:: https://travis-ci.org/pglass/nose-mp-split.svg?branch=master
    :target: https://travis-ci.org/pglass/nose-mp-split

This plugin adds ``_multiprocess_can_split_ = True`` to each of your test
classes and modules. That's all. This tells nose's multiprocess plugin that it
doesn't need to run all of a class's tests in the same process. Nose will then
distribute test cases from the same class (or module) across different
processes. It was written in response to behavior demonstrated here_.

When it's safe to use with your tests, this plugin is so cool!

- There's no need to edit your tests to contain a nose-specific flag.
- It evenly distributes test cases (rather than test classes) across processes.
  This utilizes worker process better to speed up test runs, especially if one
  class has many tests cases and takes much longer to run than the others.
- It produces more responsive output. Since nose runs test *classes* in worker
  processes, it waits until each class has finished before printing the results
  for that class. This plugin ensures the results of a test case are printed
  immediately after that test has finished.

You can use this plugin when you know your tests are safe to run in parallel.
For instance, don't use this plugin if you have test fixtures that cannot
be run repeatedly and concurrently in multiple processes.

Quickstart
==========

.. code-block:: shell

    $ pip install nose-mp-split
    $ nosetests --mp-split-all --processes=4 mytests/

``nose-mp-split`` has no effect when not running tests in multiple processes.

.. _here: https://github.com/pglass/nosemultiprocess-test

{'fraction_non_alphanumeric': 0.08023009385407205, 'fraction_numerical': 0.0006055101422948834, 'mean_word_length': 4.0830769230769235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '4682589', 'n_tokens_mistral': 873, 'n_tokens_neox': 831, 'n_words': 466}