Skip to content
Work in progress. This library and its docs are new and still changing, and some parts are not yet tested on a real robot. If something is wrong or unclear,tell us with a short GitHub form.

Tests

Check that your robot code still does its job, and that the robot itself is ready to run.

A test asks one of two questions:

  • Is my robot code right? A simulator test drives your robot on the laptop and checks the result. It finds a break you did not mean to make: a typo, a wrong button, a number in the wrong section.
  • Is my robot right? A check on the real robot finds a loose cable, a reversed motor, a flat battery or a wrong setting before a match.

Two kinds of tests: simulator tests on the laptop check the robot code (pages 1 and 2); checks on the real robot check the robot (page 3)

# Page You learn Use it
1 Record a test Record a test in the simulator, read it line by line, set how close is close enough, and update it after a planned change. when your robot drives and has an autonomous
2 Run all your tests Run every test with one button or one command. For programmers: laptop tests in Java. after every code change, and before you commit
3 Checks before practice and matches A fixed order of checks on the real robot, printable checklists, and what to do when something breaks. after wiring, after a mechanism change, before practice, and before every match

Why both: a simulator test cannot find a loose cable, and a check on the robot cannot find a break in code that you did not run. Do both.


Next: Record a test.

Something wrong on this page? Tell us with a short GitHub form.