:py:mod:`buildtest.tools.unittests`
===================================
.. py:module:: buildtest.tools.unittests
Module Contents
---------------
Functions
~~~~~~~~~
.. autoapisummary::
buildtest.tools.unittests.run_unit_tests
Attributes
~~~~~~~~~~
.. autoapisummary::
buildtest.tools.unittests.here
buildtest.tools.unittests.parser
.. py:data:: here
.. py:function:: run_unit_tests(pytestopts=None, sourcefiles=None, enable_coverage=False)
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.
:param pytestopts: Specify options to pytest command.
:type pytestopts: str
:param sourcefiles: List of source files to run with pytest
:type sourcefiles: list
:param enable_coverage: Enable coverage when running regression test
:type enable_coverage: bool
.. py:data:: parser