Skip to content

davidlpower/property_based_testing_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eFFN Testing Tip: Property-based tests

Library

In this demo the property-based testing library used was Hypothesis

Structure

  • application - a basic run length encoder to test
  • slides - demo slides
  • tests - parametrised tests and property-based tests

Getting Started

First, you'll need to make sure you have a few Python modules installed pip install paramterized hypothesis

Next, make sure your $PYTHONPATH is pointed to the root directory of this project

Run The Tests

From the root directory, run pytest ./tests/test_run_length_encoding.py or pytest ./tests/test_run_length_encoding_property_based.py

About

EFFN Demo 8th November 2017

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages