When you’re working on a prototype, often you develop functions that you don’t want to lose as you continue changing the code. A way to protect your code base against such changes is by using unit tests.
Normally unit tests are tests of software which demonstrate that a given aspect – like a function, class or method – acts as it should. Unit tests run without human intervention – the same input is used to produce the same output, every time.
With robots it’s a bit more complicated, since they interact with the physical world. This means that there’s no way to produce exactly the same input every time. We’ve created tests for the FSE 2017 prototype which try to test the functionality of the robot as objectively as possible, though. This allows us to continue working on the robot in the background without worrying about things going wrong. Check out our demonstration!