run_tests(self, **kwargs)
This method builds arguments for and then calls pytest.main
.
The name of a specific package to test, e.g. 'io.fits' or 'utils'. Accepts comma separated string to specify multiple packages. If nothing is specified all default tests are run.
Additional arguments to be passed to pytest.main
in the args
keyword argument.
The path to the documentation .rst files.
Fail when any tests leave files open. Off by default, because this adds extra run time to the test suite. Requires the psutil
package.
When provided, run the tests in parallel on the specified number of CPUs. If parallel is 'auto'
, it will use the all the cores on the machine. Requires the pytest-xdist
plugin.
Convenience option for turning on pytest pastebin output. Set to 'failed' to upload info for failed tests, or 'all' to upload info for all tests.
Turn on PDB post-mortem analysis for failing tests. Same as specifying --pdb
in args
.
Turn on PEP8 checking via the pytest-pep8 plugin and disable normal tests. Same as specifying --pep8 -k pep8
in args
.
Plugins to be passed to pytest.main
in the plugins
keyword argument.
Controls whether to run tests marked with @pytest.mark.remote_data. This can be set to run no tests with remote data ( none
), only ones that use data from http://data.astropy.org ( astropy
), or all tests that use remote data ( any
). The default is none
.
If set, specifies how many times each test should be run. This is useful for diagnosing sporadic failures.
When :None:None:`True`
, skips running the doctests in the .rst files.
Specify location to test by path. May be a single file or directory. Must be specified absolutely or relative to the calling directory.
Convenience option to turn on verbose output from pytest. Passing True is the same as specifying -v
in args
.
Run the tests for the package.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them