buildtest.tools.unittests

Module Contents

Functions

run_unit_tests([pytestopts, sourcefiles, enable_coverage])

Entry point for running buildtest unit tests. This method can be invoked via buildtest unittests or run

Attributes

here

parser

buildtest.tools.unittests.here
buildtest.tools.unittests.run_unit_tests(pytestopts=None, sourcefiles=None, enable_coverage=False)[source]

Entry point for running buildtest unit tests. This method can be invoked via buildtest unittests or run via command line as standalone program. The unit tests are run via pytest and coverage for measuring coverage report. This method will report coverage results that can be viewable in html or json.

Parameters:
  • pytestopts (str) – Specify options to pytest command.

  • sourcefiles (list) – List of source files to run with pytest

  • enable_coverage (bool) – Enable coverage when running regression test

buildtest.tools.unittests.parser