Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions pyfrc/mains/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,19 @@ def __init__(self, parser=None):
action="store_true",
help="Use pyfrc's builtin tests if no tests are specified",
)
parser.add_argument(
isolation_group = parser.add_mutually_exclusive_group()
isolation_group.add_argument(
"--isolated",
default=None,
dest="isolated",
action="store_true",
help="Run each test in a separate robot process. Set `tool.robotpy.pyfrc.isolated` to true in your pyproject.toml to enable by default",
help="Run each test in a separate robot process (default). Set `tool.robotpy.pyfrc.isolated` in your pyproject.toml to control the default",
)
isolation_group.add_argument(
"--no-isolation",
dest="isolated",
action="store_false",
help="Disable isolated test mode and run tests in-process",
)
parser.add_argument(
"--coverage-mode",
Expand Down Expand Up @@ -99,13 +107,7 @@ def run(
isolated = v

if isolated is None:
isolated = False

if not isolated:
logger.info(
"Isolated test mode not enabled, consider using it if your tests hang"
)
logger.info("- See 'robotpy test --help' for details")
isolated = True

try:
return self._run_test(
Expand Down