Skip to content

Add the ability to run field tests and simulated tests from within Thunderscope #3369

@itsarune

Description

@itsarune

Description of the task

Every time we want to launch a simulated test/field test, we need to launch Thunderscope with the specific bazel command for that test. We want to add a feature to select a test to execute within Thunderscope itself without needing to run a new command.

Possible approach:

  1. Add a widget to select from simulated tests and field tests we could run. Maybe it could use a fuzzy searcher like the Proto Configuration widget.
  2. You can use pytest.main to query for pytests that are runnable. You may create a new Plugin to bind the newly created simulated tests to the current proto unix of Thunderscope.
  3. Currently, simulated_test_runner and field_test_runner launch their own instances of Thunderscope. Update these fixtures so that we can run these tests in real-time without starting a new instance of Thunderscope. Note that simulated tests can run without Thunderscope! But they run in asynchronous, fast simulated time. We would need to change this behaviour where if we are binding to an already open instance of Thunderscope, we will want to run the test at real-time

Acceptance criteria

  • We can launch Thunderscope ./tbots.py run thunderscope_main and have the option to run any simulated_test we want
  • We can launch Thunderscope with --run_blue or --run_yellow and we can launch whichever field_test we want

Blocked By

Metadata

Metadata

Assignees

Labels

Difficulty - 13Requires a good understanding of relevant systems and toolsThunderscope

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions