Skip to content

Ability to run tests within thunderscope#3540

Closed
nycrat wants to merge 12 commits into
UBC-Thunderbots:avah/combine_simulated_and_field_testsfrom
nycrat:avah/run_tests_within_thunderscope
Closed

Ability to run tests within thunderscope#3540
nycrat wants to merge 12 commits into
UBC-Thunderbots:avah/combine_simulated_and_field_testsfrom
nycrat:avah/run_tests_within_thunderscope

Conversation

@nycrat

@nycrat nycrat commented Dec 8, 2025

Copy link
Copy Markdown
Member

See #3806

Description

This is a stacked PR: #3744 #3540

This PR implements a "test mode" for thunderscope that can be launched using: ./tbots.py run thunderscope --test_mode or just ./tbots.py with the interactive prompt. It can also run field tests (TODO untested right now) using ./tbots.py run thunderscope --test_mode --run_field_test

Screen.Recording.2026-06-23.at.08.34.26.mov

Testing Done

  • Ran simulated tests in the new test mode and behaviour is the same as running bazel test
  • Ran simulated tests using bazel test and behaviour is unchanged
  • TODO field testing

Resolved Issues

resolves #3369

Length Justification and Key Files to Review

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

  • Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

@nycrat nycrat changed the title Ability to run tests within thunderscope [DRAFT] Ability to run tests within thunderscope Dec 8, 2025
@nycrat nycrat force-pushed the avah/run_tests_within_thunderscope branch from 0eab961 to 2dc38d9 Compare February 14, 2026 18:18
@nycrat nycrat force-pushed the avah/run_tests_within_thunderscope branch from 9b6220a to 4715de1 Compare June 19, 2026 07:04
@nycrat nycrat changed the base branch from master to avah/combine_simulated_and_field_tests June 19, 2026 07:07
@nycrat nycrat force-pushed the avah/run_tests_within_thunderscope branch 2 times, most recently from 6fce915 to 2008261 Compare June 19, 2026 20:35
@nycrat nycrat force-pushed the avah/run_tests_within_thunderscope branch from 26a5f52 to 4eed05f Compare June 23, 2026 02:45
Comment on lines -89 to -105
):
with Gamecontroller(
Gamecontroller(
suppress_logs=(not args.show_gamecontroller_logs)
) as gamecontroller:
blue_fs.setup_proto_unix_io(blue_full_system_proto_unix_io)
yellow_fs.setup_proto_unix_io(yellow_full_system_proto_unix_io)
simulator.setup_proto_unix_io(
simulator_proto_unix_io,
blue_full_system_proto_unix_io,
yellow_full_system_proto_unix_io,
ProtoUnixIO(),
)
gamecontroller.setup_proto_unix_io(
blue_full_system_proto_unix_io=blue_full_system_proto_unix_io,
yellow_full_system_proto_unix_io=yellow_full_system_proto_unix_io,
simulator_proto_unix_io=simulator_proto_unix_io,
)

@nycrat nycrat Jun 23, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: these changes are just formatting

@nycrat nycrat force-pushed the avah/run_tests_within_thunderscope branch from e082cb8 to e6e5a6e Compare June 23, 2026 16:39
@nycrat nycrat force-pushed the avah/run_tests_within_thunderscope branch from 19e8017 to 95b28d5 Compare June 23, 2026 17:05
@nycrat nycrat changed the title [DRAFT] Ability to run tests within thunderscope Ability to run tests within thunderscope Jun 23, 2026
@nycrat nycrat marked this pull request as ready for review June 23, 2026 17:31
@nycrat

nycrat commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

See #3806 instead

@nycrat nycrat closed this Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant