Python Test - Pytest library

Python Test Idea

Python Test - Pytest library

About

pytest is a test runner library

See also 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

Idea Settings Python Test Runner

Documentation / Reference







Share this page:
Follow us:
Task Runner