DjangoCon Europe 2023 | Turning test writing into a consistently brief and pleasant experience

  Рет қаралды 1,609

DjangoCon Europe

DjangoCon Europe

Күн бұрын

Turning test writing into a consistently brief and pleasant experience
by Wilhelm Klopp
pretalx.com/dj...
Writing tests for our web apps can be painful, slow, and boring. In this talk we look at 10 tools and techniques to make writing django tests a consistently pleasant experience.
There's one thing I enjoy least about software development: Writing tests. I appreciate the tests I've written in the past, but I do not enjoy the process of creating new ones. How can we make test writing a pleasant, brief, and fun experience? This talk looks at over 10 tools and techniques to accomplish exactly that.
Engage the audience with some live poll questions:
How much time do you spend writing tests?
How much do you enjoy writing tests?
Have you spent time improving your own testing experience?
What existing software engineering research says about how much time we spend on tests
How we think about writing tests for our web applications:
What value do we get from tests, why do we write them at all?
How many tests should we write? What do we not want to test? How important is coverage?
What tests should we write? Unit tests, integration tests, Not too many, mostly integration
When does test driven development help us? When does it not?
Techniques for making test writing more brief and more pleasant:
Putting in some time to write testing abstractions to improve the testing experience of your colleagues and future you
Testing utilities for managing time: freezegun, time machine
Testing utilities for dealing with outbound http requests: httpretty, response, VCR
Testing utilities for managing with SQL queries
Property based testing and ghostwriting with hypothesis
Kolo to turn recorded requests into tests
Pytest and the best plugins for saving time
Browser based testing: Selenium, storybook, etc.
Generating tests with large language models - How useful is Chat GPT?
Further tools and techniques from user interviews with django developers (this research is ongoing)
I’m in the process of interviewing ~20 django developers about their experience with writing tests and the steps the’ve taken to improve their test setup. I plan to incorporate many of the learnings in this talk
Summary, Recap, Conclusion
Attendees will come away with practical tips for how to improve their own experience writing tests.

Пікірлер
Горы Бесплатной пиццы
00:56
Тимур Сидельников
Рет қаралды 8 МЛН
Don’t try this trick with a Squid Game Soldier 😉 #squidgame
00:15
Andrey Grechka
Рет қаралды 178 МЛН
Banana vs Sword on a Conveyor Belt
01:00
Mini Katana
Рет қаралды 77 МЛН
DjangoCon 2022 | Quality Assurance in Django - Testing what matters
28:40
DjangoCon Europe
Рет қаралды 2,6 М.
When To Unit, E2E, And Integration Test
14:58
ThePrimeTime
Рет қаралды 108 М.
Code smarter, not harder at Angular Berlin with Daniel Sogl
53:52
DjangoCon Europe 2023 | HTMX vs WASM - more backend or more frontend?
29:44
DjangoCon 2021 | Speed up your tests with setUpTestData | Adam Johnson
30:31
music for reading, writing and studying (a classical)
1:00:45
The Dreamers
Рет қаралды 12 МЛН
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
DjangoCon Europe 2023 | Yak-shaving to Where the Puck is Going to Be.
25:26
Горы Бесплатной пиццы
00:56
Тимур Сидельников
Рет қаралды 8 МЛН