Skip to content

Repository containing source code and experiments for a project on Property-Based Testing in Python. Includes implementations of various operations and comprehensive Hypothesis-based tests, from simple invariants to advanced stateful testing

License

Notifications You must be signed in to change notification settings

Ch1L1/property-based-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Property-Based Testing Experiments

This project contains experiments demonstrating property-based testing concepts, comparing them with other testing approaches, and showcasing both effective and ineffective applications of property-based testing.

How to Run the Tests

Prerequisites

  • Python 3.6+
  • pytest
  • hypothesis

Installation

pip install pytest hypothesis pytest-xdist

Running All Tests

cd python
python -m pytest

Running Specific Test Files

python -m pytest tests/test_string_operations.py
python -m pytest tests/test_math_operations.py
python -m pytest tests/test_bank_account.py

Running Tests with Verbose Output

python -m pytest -v

Running Tests and Showing Hypothesis Examples

python -m pytest -v --hypothesis-show-statistics

About

Repository containing source code and experiments for a project on Property-Based Testing in Python. Includes implementations of various operations and comprehensive Hypothesis-based tests, from simple invariants to advanced stateful testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages