MCPcopy Index your code
hub / github.com/nodejs/node / BuildOptions

Function BuildOptions

tools/test.py:1387–1468  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1385
1386
1387def BuildOptions():
1388 result = argparse.ArgumentParser()
1389 result.add_argument("-m", "--mode", help="The test modes in which to run (comma-separated)",
1390 default='release')
1391 result.add_argument("-v", "--verbose", help="Verbose output",
1392 default=False, action="store_true")
1393 result.add_argument('--logfile', dest='logfile',
1394 help='write test output to file. NOTE: this only applies the tap progress indicator')
1395 result.add_argument("-p", "--progress",
1396 help="The style of progress indicator (%s)" % ", ".join(PROGRESS_INDICATORS.keys()),
1397 choices=list(PROGRESS_INDICATORS.keys()), default="mono")
1398 result.add_argument("--report", help="Print a summary of the tests to be run",
1399 default=False, action="store_true")
1400 result.add_argument("-s", "--suite", help="A test suite",
1401 default=[], action="append")
1402 result.add_argument("-t", "--timeout", help="Timeout in seconds",
1403 default=120, type=int)
1404 result.add_argument("--arch", help='The architecture to run tests for',
1405 default='none')
1406 result.add_argument("--snapshot", help="Run the tests with snapshot turned on",
1407 default=False, action="store_true")
1408 result.add_argument("--special-command", default=None)
1409 result.add_argument("--node-args", dest="node_args", help="Args to pass through to Node",
1410 default=[], action="append")
1411 result.add_argument("--expect-fail", dest="expect_fail",
1412 help="Expect test cases to fail", default=False, action="store_true")
1413 result.add_argument("--valgrind", help="Run tests through valgrind",
1414 default=False, action="store_true")
1415 result.add_argument("--worker", help="Run parallel tests inside a worker context",
1416 default=False, action="store_true")
1417 result.add_argument("--check-deopts", help="Check tests for permanent deoptimizations",
1418 default=False, action="store_true")
1419 result.add_argument("--cat", help="Print the source of the tests",
1420 default=False, action="store_true")
1421 result.add_argument("--flaky-tests",
1422 help="Regard tests marked as flaky (run|skip|dontcare|keep_retrying)",
1423 default="run")
1424 result.add_argument("--measure-flakiness",
1425 help="When a test fails, re-run it x number of times",
1426 default=0, type=int)
1427 result.add_argument("--skip-tests",
1428 help="Tests that should not be executed (comma-separated)",
1429 default="")
1430 result.add_argument("--warn-unused", help="Report unused rules",
1431 default=False, action="store_true")
1432 result.add_argument("-j", help="The number of parallel tasks to run, 0=use number of cores",
1433 default=0, type=int)
1434 result.add_argument("-J", help="For legacy compatibility, has no effect",
1435 default=False, action="store_true")
1436 result.add_argument("--time", help="Print timing information after running",
1437 default=False, action="store_true")
1438 result.add_argument("--suppress-dialogs", help="Suppress Windows dialogs for crashing tests",
1439 dest="suppress_dialogs", default=True, action="store_true")
1440 result.add_argument("--no-suppress-dialogs", help="Display Windows dialogs for crashing tests",
1441 dest="suppress_dialogs", action="store_false")
1442 result.add_argument("--shell", help="Path to node executable", default=None)
1443 result.add_argument("--store-unexpected-output",
1444 help="Store the temporary JS files from tests that fails",

Callers 1

MainFunction · 0.70

Calls 4

keysMethod · 0.65
listFunction · 0.50
add_argumentMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…