pxt-ev3/libs/tests/targetoverrides.ts

13 lines
304 B
TypeScript
Raw Normal View History

// EV3 specific test functions
tests.onEvent(TestEvent.RunSetUp, function() {
console.sendToScreen();
})
tests.onEvent(TestEvent.TestSetUp, function() {
motors.stopAll();
motors.resetAll();
})
tests.onEvent(TestEvent.TestTearDown, function() {
motors.stopAll();
motors.resetAll();
})