Rahix / tbot

Automation/Testing tool for Embedded Linux Development
https://tbot.tools
GNU General Public License v3.0
87 stars 21 forks source link

Reimplement selftests with pytest #46

Closed Rahix closed 3 years ago

Rahix commented 3 years ago

Instead of the custom "test-framework", use pytest to run tbot's selftests.

I've used this opportunity to demonstrate integration of tbot into a pytest test-suite. With the keep_alive and reset_on_error modes of tbot.Context, machines are only reset when a failure occurs or it was explicitly requested. This is extremely useful when testing against real hardware which takes some time to reset.