~/talk

Pytest Tests in Twister

Talkat Embedded Open Source Summit 2024 · 2024-04-16..04-18· [testing, python]
links:none on file
slides:none on file

A pytest plugin for Twister lets tests use pytest fixtures and plugins while Twister handles collection and reporting via JUnit XML, enabling device-type agnostic tests that run on hardware, QEMU or native posix. Implemented device adapters abstract serial/FIFO details, fixtures manage setup/teardown and scopes, and examples include interactive shell checks, an MCUboot downgrade prevention flow using mcumgr, and a full LwM2M end-to-end interoperability test that spins up a Leshan server in Docker and verifies live client-server exchanges.

AI-written summary · about

  1. 0:00pytest in Twister intro
  2. 1:26Twister limitations
  3. 3:12Why pytest fits Twister
  4. 4:40pytest features for Twister
  5. 5:42pytest integration with Twister
  6. 7:48Running pytest in Twister
  7. 9:56Device adapters in plugin
  8. 11:42Fixtures as core building blocks
  9. 14:09Shell test example
  10. 16:50Test output demo
  11. 18:14MCU boot downgrade test
  12. 20:46LwM2M interoperability test
  13. 25:04Future plans
  14. 27:34Solution benefits
  15. 29:41Q&A
  16. 30:03Reliability testing
  17. 31:26Native Sim tests
  18. 33:36Stress testing
  19. 34:41Open source tools motivation
  20. 35:25Local server setup
  21. 36:48Hardware device tests
  22. 37:50Test scope config
  23. 39:36Twister and pytest sequencing
  24. 41:00Extending adapter factories
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.