8000 Python-software-engineering/source-code/testing at master · gjbex/Python-software-engineering · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Testing

Testing is an integral part of the software development process. Unit testing is a popular technique, and is used in test-driven development (TDD). Python's unittest module in its standard library is quite versatile, but more modern packages are available.

What is it?

  1. Unittest: illustration of using the unittest` framework in Python's standard library.
  2. PyTest: pytest is a more modern and convenient testing framework than that provided by Python's standard library.
  3. Asserts: assert is a Python statement, so it not part of unit testing per se. It is mainly intended for contract-based programming and one can prevent code to be emitted for asserts by using the -O optimizatino flag when running the code.
  4. DocTest: illustration of using doctest (part of the Python standard library.
  5. Hypothesis: illustration of using hypothesis for fuzz testing.
0