Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Automatic Testing of Python Functions Based on Contracts

EuroPython Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore automatic testing of Python functions using contracts in this EuroPython 2021 conference talk. Learn how to specify function behavior through input and output properties, reducing the need for extensive unit tests. Discover two tools, crosshair and icontract-hypothesis, for contract-based testing and their practical applications in everyday programming. Examine the Python-by-contract corpus to understand the tools' strengths and limitations. Gain insights into using these techniques in educational settings to enhance debugging skills and improve the learning experience. Suitable for Python developers familiar with lambda functions, Boolean logic, and quantifiers.

Syllabus

Introduction
Good Functions
Naming
Precision
Unit Tests
PropertyBased Tests
Preconditions and assertions
Solution
Advantages
iContract
Hypothesis
IContract Hypothesis
IContract Hypothesis Demo
Future of IContract Hypothesis
Limitations of Crosshair
Related Tools
Python by Contract Corpus
QA

Taught by

EuroPython Conference

Reviews

Start your review of Automatic Testing of Python Functions Based on Contracts

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.