use common packages tests implementation (#171)

This commit is contained in:
Peli de Halleux
2018-01-04 09:23:28 -08:00
committed by GitHub
parent 9a4ed45797
commit ba0eb93b0f
6 changed files with 25 additions and 98 deletions

View File

@@ -0,0 +1,12 @@
// EV3 specific test functions
tests.onEvent(TestEvent.RunSetUp, function() {
console.sendToScreen();
})
tests.onEvent(TestEvent.TestSetUp, function() {
motors.stopAllMotors();
motors.resetAllMotors();
})
tests.onEvent(TestEvent.TestTearDown, function() {
motors.stopAllMotors();
motors.resetAllMotors();
})