ayon-core/tests
2021-12-14 11:28:30 +01:00
..
integration Merge branch 'develop' into feature/OP-2053_Add-validator-to-check-correct-version-of-extension-for-PS-and-AE 2021-12-14 11:28:30 +01:00
lib OP-2042 - fix tested output path 2021-12-13 11:49:19 +01:00
openpype/modules/default_modules/royal_render fix hound 2021-11-09 09:31:54 +01:00
resources #1784 - added howto create new publishing test 2021-09-06 18:42:34 +02:00
unit version repacker command 2021-11-16 18:34:14 +01:00
__init__.py #1784 - added base implementation for helper DB class 2021-07-07 18:51:55 +02:00
README.md OP-2019 - added details into documentation 2021-11-19 12:26:28 +01:00

Automatic tests for OpenPype

Structure:

  • integration - end to end tests, slow (see README.md in the integration folder for more info)
    • openpype/modules/MODULE_NAME - structure follow directory structure in code base
      • fixture - sample data (MongoDB dumps, test files etc.)
      • tests.py - single or more pytest files for MODULE_NAME
  • unit - quick unit test
    • MODULE_NAME
      • fixture
      • tests.py

How to run:

  • single test class could be run by PyCharm and its pytest runner directly
  • OR
  • use Openpype command 'runtests' from command line (.venv in ${OPENPYPE_ROOT} must be activated to use configured Python!) -- ${OPENPYPE_ROOT}/python start.py runtests

By default, this command will run all tests in ${OPENPYPE_ROOT}/tests.

Specific location could be provided to this command as an argument, either as absolute path, or relative path to ${OPENPYPE_ROOT}. (eg. ${OPENPYPE_ROOT}/python start.py runtests ../tests/integration) will trigger only tests in integration folder.

See ${OPENPYPE_ROOT}/cli.py:runtests for other arguments.