bundles / astropy 7.0.1 / astropy / tests / runner / TestRunner / run_tests
function
astropy.tests.runner:TestRunner.run_tests
source: /astropy/tests/runner.py :574
Signature
def run_tests ( self , ** kwargs ) Summary
Run the tests for the package.
Extended Summary
This method builds arguments for and then calls
pytest.main.
Parameters
package: str, optionalThe name of a specific package to test, e.g. 'io.fits' or'utils'. Accepts comma separated string to specify multiplepackages. If nothing is specified all default tests are run.argsstr, optional
Additional arguments to be passed to ``pytest.main`` in the ``args``keyword argument.docs_pathstr, optional
The path to the documentation .rst files.parallelint or 'auto', optional
When provided, run the tests in parallel on the specifiednumber of CPUs. If parallel is ``'auto'``, it will use the allthe cores on the machine. Requires the ``pytest-xdist`` plugin.pastebin('failed', 'all', None), optional
Convenience option for turning on pytest pastebin output. Set to'failed' to upload info for failed tests, or 'all' to upload infofor all tests.pdbbool, optional
Turn on PDB post-mortem analysis for failing tests. Same asspecifying ``--pdb`` in ``args``.pluginslist, optional
Plugins to be passed to ``pytest.main`` in the ``plugins`` keywordargument.remote_data{'none', 'astropy', 'any'}, optional
Controls whether to run tests marked with @pytest.mark.remote_data. This can beset to run no tests with remote data (``none``), only ones that usedata from http://data.astropy.org (``astropy``), or all tests thatuse remote data (``any``). The default is ``none``.repeat
int, optionalIf set, specifies how many times each test should be run. This isuseful for diagnosing sporadic failures.skip_docs
bool, optionalWhen `True`, skips running the doctests in the .rst files.test_pathstr, optional
Specify location to test by path. May be a single file ordirectory. Must be specified absolutely or relative to thecalling directory.verbosebool, optional
Convenience option to turn on verbose output from pytest. PassingTrue is the same as specifying ``-v`` in ``args``.
Aliases
-
astropy.tests.runner.TestRunner.run_tests