Python Test - Pytest library

About

pytest is a test runner library

See also Python - Test

File format

filename like test_*.py will be auto-discoverable by pytest.

Example

from test_helper import Test
numPoints = 6724
Test.assertEquals(numPoints, 6724, 'incorrect value for numPoints')

Idea Configuration

  • Set Pytest as the runner, then run the script as normal

_

Documentation / Reference


Powered by ComboStrap