Unit Testing/Pytest

(Redirected from Pytest)

Pytest is a Python programming language test automation framework. Test automation is the use of software separate from the software being tested to control the execution of tests and the comparison of actual outcomes with predicted outcomes.[1] Pytest uses simple assertion statements to test software accuracy.[2]

Pytest logo
Pytest logo

Readings edit

  1. Wikipedia: Test automation

Multimedia edit

  1. YouTube: Python Unit Testing With PyTest
  2. YouTube: Code Coverage Tutorial with Python

Activities edit

  1. Install Pytest
  2. Create an assert Test
  3. Create a unittest Test
  4. Test Input
  5. Test Output
  6. Test Exceptions
  7. View Test Coverage

See Also edit

References edit