Bewegte Bilder
Property based testing with Hypothesis
The hypothesis.works of the Hypothesis project boldly asserts: - Normal “automated” software testing is surprisingly manual. Every scenario the computer runs, someone had to write by hand. Hypothesis can fix this. While it's debatable whether property-based testing should fully replace the manual parametrization of tests with different inputs and outputs, there's no doubt that Hypothesis is a powerful tool for uncovering bugs nobody would even have considered looking for. In fact, during its development, the authors of Hypothesis accidentally discovered countless bugs in CPython and libraries, thus coining the term *"The Curse of Hypothesis"*. The framework, although incredibly powerful, might seem overwhelming at first. In this talk, I will demonstrate how even simply throwing random strings at functions can reveal surprising bugs. From there, we'll progress towards generating more complex data, which will be less daunting than it initially appears. You'll also see how Hypothesis seamlessly integrates with various ecosystems and can be a valuable tool in any developer's toolkit. --------------------- About the speaker(s): Florian Bruhin ("The Compiler") is a long-time contributor and maintainer of both the pytest framework and various plugins. He discovered pytest in 2015 - since then, he has given talks and conducted workshops about pytest at various conferences and companies. His primary project, qutebrowser (a keyboard-focused web browser), has grown from a hobby to a donationfunded part-time job.
- Standort
-
Hannover TIB
- Umfang
-
208MB, 00:34:42:17 (unknown)
- Sprache
-
Englisch
- Anmerkungen
-
Audiovisuelles Material
- Erschienen in
-
Swiss Python Summit 2024 (SPS24) ; (Jan. 2024)
- Ereignis
-
Veröffentlichung
- (wer)
-
Swiss Python Summit Association
- (wann)
-
2024-01-01
- Beteiligte Personen und Organisationen
-
Bruhin, Florian
N. N. (Moderation)
- DOI
-
10.5446/69802
- Letzte Aktualisierung
- 21.04.2026, 10:49 MESZ
Datenpartner
Dieses Objekt wird bereitgestellt von:
Technische Informationsbibliothek (TIB).
Bei Fragen zum Objekt wenden Sie sich bitte an den Datenpartner.
Objekttyp
- zweidimensionales bewegtes Bild
Beteiligte
- Bruhin, Florian
- N. N. (Moderation)
- Swiss Python Summit Association
Entstanden
- 2024-01-01