~/talk

Pytest vs Robot, A battle or Co existence

Talkat PyCon SE 2022 · 2022-11-03..11-04· [testing, python]
links:none on file
slides:none on file

Compares concrete examples: simple GitHub and NASA API status-code tests are implemented in pytest using pytest fixtures and run with the pytest-html plugin to produce reports, then converted into a Robot library by applying Robot decorators so the same Python methods become Robot Framework keywords; tests execute, two pass and two fail as expected. Claims pytest can be about 30% faster (not benchmarked here). Demonstrates minimal-refactor migration and coexistence; code lives in the PyCon GitHub repo.

AI-written summary · about

  1. 0:00Introduction and speaker welcome
  2. 1:22Overview of test frameworks
  3. 2:26Key features of pytest vs Robot
  4. 3:09pytest and Robot Framework homepages
  5. 4:34Test flow comparison
  6. 6:20Robot Framework keywords and resources
  7. 8:29Complex test scenario setup
  8. 9:12Writing a pytest test case
  9. 11:48Running pytest tests
  10. 12:30pytest fixtures explained
  11. 14:20pytest plugins and HTML reports
  12. 15:47Converting pytest to Robot Framework
  13. 16:53Robot Framework test structure
  14. 18:42Running Robot Framework tests
  15. 19:49Test report comparison
  16. 20:53Advantages and drawbacks
  17. 22:18Takeaways and conclusion
  18. 23:23Q&A session begins
  19. 23:51Robot specification file logic
  20. 25:17Robot vs BDD frameworks
  21. 26:27Generating Robot tests from pytest
  22. 27:40Requirement engineer perspective
  23. 29:04HTML report satisfaction debate
  24. 30:10Coexistence and refactoring
~/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.