MCPcopy Create free account
hub / github.com/numpy/numpy / main

Function main

runtests.py:78–405  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

76ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__)))
77
78def main(argv):
79 parser = ArgumentParser(usage=__doc__.lstrip())
80 parser.add_argument("--verbose", "-v", action="count", default=1,
81 help="Add one verbosity level to pytest. Default is 0")
82 parser.add_argument("--debug-info", action="store_true",
83 help=("Add --verbose-cfg to build_src to show "
84 "compiler configuration output while creating "
85 "_numpyconfig.h and config.h"))
86 parser.add_argument("--no-build", "-n", action="store_true", default=False,
87 help="Do not build the project (use system installed "
88 "version)")
89 parser.add_argument("--build-only", "-b", action="store_true",
90 default=False, help="Just build, do not run any tests")
91 parser.add_argument("--doctests", action="store_true", default=False,
92 help="Run doctests in module")
93 parser.add_argument("--refguide-check", action="store_true", default=False,
94 help="Run refguide (doctest) check (do not run "
95 "regular tests.)")
96 parser.add_argument("--coverage", action="store_true", default=False,
97 help=("Report coverage of project code. HTML output "
98 "goes under build/coverage"))
99 parser.add_argument("--lint", default=None,
100 help="'<Target Branch>' or 'uncommitted', passed to "
101 "tools/linter.py [--branch BRANCH] "
102 "[--uncommitted]")
103 parser.add_argument("--durations", action="store", default=-1, type=int,
104 help=("Time N slowest tests, time all if 0, time none "
105 "if < 0"))
106 parser.add_argument("--gcov", action="store_true", default=False,
107 help=("Enable C code coverage via gcov (requires "
108 "GCC). gcov output goes to build/**/*.gc*"))
109 parser.add_argument("--lcov-html", action="store_true", default=False,
110 help=("Produce HTML for C code coverage information "
111 "from a previous run with --gcov. "
112 "HTML output goes to build/lcov/"))
113 parser.add_argument("--mode", "-m", default="fast",
114 help="'fast', 'full', or something that could be "
115 "passed to nosetests -A [default: fast]")
116 parser.add_argument("--submodule", "-s", default=None,
117 help="Submodule whose tests to run (cluster, "
118 "constants, ...)")
119 parser.add_argument("--pythonpath", "-p", default=None,
120 help="Paths to prepend to PYTHONPATH")
121 parser.add_argument("--tests", "-t", action='append',
122 help="Specify tests to run")
123 parser.add_argument("--python", action="store_true",
124 help="Start a Python shell with PYTHONPATH set")
125 parser.add_argument("--ipython", "-i", action="store_true",
126 help="Start IPython shell with PYTHONPATH set")
127 parser.add_argument("--shell", action="store_true",
128 help="Start Unix shell with PYTHONPATH set")
129 parser.add_argument("--mypy", action="store_true",
130 help="Run mypy on files with NumPy on the MYPYPATH")
131 parser.add_argument("--debug", "-g", action="store_true",
132 help="Debug build")
133 parser.add_argument("--parallel", "-j", type=int, default=0,
134 help="Number of parallel jobs during build")
135 parser.add_argument("--warn-error", action="store_true",

Callers 1

runtests.pyFile · 0.70

Calls 15

lcov_generateFunction · 0.85
gcov_reset_countersFunction · 0.85
printFunction · 0.85
check_lintFunction · 0.85
build_projectFunction · 0.85
openFunction · 0.85
asv_compare_configFunction · 0.85
testFunction · 0.85
lstripMethod · 0.80
startswithMethod · 0.80
stripMethod · 0.80
decodeMethod · 0.80

Tested by

no test coverage detected