~/talk

Mashing up py.test, coverage.py and ast.py to take TDD to a new level

Talkat EuroPython 2015 · 2015-07-20..07-26· [testing, python]
linkedin:tiborarpas
slides:none on file

Claims a concrete speedup: a py.test plugin "testmon" that uses coverage.py to record per-test executed lines and ast.py to map lines to functions, builds a dependency matrix and selects only affected tests after each file change. The tool runs a demo that reduces minutes-long suites to interactive runs, handles helper functions and fixtures when exercised, shows gaps (data files, cross-language code, session-scoped assumptions) and reports that the approach works reliably on real projects.

AI-written summary · about

  1. 0:00Start
  2. 2:23EXECUTING TEST SUITE..
  3. 2:57Broken test suite
  4. 3:24Majority of code changes are local
  5. 3:48When the dependencies look like this
  6. 4:09Example "project" with a test suite in one file
  7. 10:22py.test plug-in
  8. 11:23Interesting aspect - crowdfunding
  9. 14:10Contacts
  10. 19:05subtract vs. test add
~/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.