.. _moduleTest.test:

music21.test.test
=================

.. WARNING: DO NOT EDIT THIS FILE: AUTOMATICALLY GENERATED. Edit the .py file directly

.. module:: music21.test.test


Controller to run all module tests in the music21 folders.

Runs great, but slowly on multiprocessor systems.




.. function:: main(testGroup=['test'], restoreEnvironmentDefaults=False)

    Run all tests. Group can be test and external



    >>> print(None)
    None



ModuleGather
------------



.. class:: ModuleGather()


    Utility class for gathering and importing all modules in the music21
    package. Puts them in self.modulePaths.




    >>> from music21.test import test as testModule
    >>> mg = testModule.ModuleGather()
    >>> print mg.modulePaths[0]
    D:\Web\eclipse\music21base\music21\xmlnode.py



    **ModuleGather** **attributes**

        Attributes without Documentation: `pathSkip`, `moduleSkip`, `dirParent`, `modulePaths`

    **ModuleGather** **methods**

        .. method:: getModule(fp, restoreEnvironmentDefaults=False)


            gets one module object from the file path



        .. method:: load(restoreEnvironmentDefaults=False)


            Return a list of module objects that are not in the skip list.

            N.B. the list is a list of actual module objects not names,
            therefore cannot be pickled.




