History of: pygraz20-march - PyGraz March: pytest and hypothesis
Current version (2020-02-08T13:18:20.365112)
acronym: pygraz20-march
title: PyGraz March: pytest and hypothesis
startdate: 2020-03-03
starttime: 19:00
endtime: 23:00
timezone: Europe/Vienna
city: Graz
country: AT
address: realraum Graz, Brockmanngasse 15, 8010 Graz
exact: True
coordinates: 47.0655488753, 15.450591445
tags: vortrag talk testing python pygraz
urls:
hypothesis package https://hypothesis.readthedocs.io/
pytest package https://docs.pytest.org/
description:
In March, Christoph Reiter is going to give a talk. It is going to be in English and Christoph will dive into the topic of testing. In particular, hypothesis and pytest.
Property-Based Testing with pytest & Hypothesis
With Hypothesis you can easily add property-based/QuickCheck like testing to
your existing pytest based test suite. Hypothesis provides various tools for
generating test data automatically for your tests with the goal of breaking them
and, if it succeeds, providing a simplified example input which is easy to
work/debug with.
We are going to look at how to add Hypothesis to an existing test suite; how
to generate various types of test data; how to write tests with it; how to
write our own custom data generators and finally we are going to look at how
various popular projects use Hypothesis in their test suites.