Files
autospec/tests
William Douglas f4bef72a70 Add handling for multiline find_package
Previously support for cmake's find_package parsing was only able to
handle single line entries. This change adds support for multiline
versions and allows for module namespacing (currently qt6 and kf6
support is available).

The change for cmake_modules shows this namespacing in use.

Signed-off-by: William Douglas <william.douglas@intel.com>
2024-03-15 14:20:20 -07:00
..
2023-03-23 16:27:56 -07:00
2017-01-24 15:01:38 -08:00
2022-01-21 11:42:56 -08:00
2019-07-11 13:43:02 -07:00
2022-01-12 04:44:34 -08:00

================
Autospec Testing
================

Code Style
==========

Autospec changes are scanned to vet code style issues with the ``flake8`` tool.
To check for issues, run ``make check`` from the root of the autospec source
tree, which executes ``flake8`` with appropriate arguments.

Unit
====

Autospec ships with several test modules that correspond to individual modules
from the toplevel ``autospec`` directory.

Each module can be tested in isolation by running ``make test_<MODULE>``, where
``<MODULE>`` corresponds to the module name. For example, ``make
test_pkg_integrity`` runs unit tests for the ``pkg_integrity.py`` module.

To run *all* unit tests, run ``make unittests``. If all tests pass, a code
coverage report is also generated.