Commercetools Adapters
Test
Running Tests with Coverage
To run the test suite and generate a test coverage report, use the following command:
$ pytest --cov-report term --cov=machc tests/
--cov=machc
: Specifies the module (machc
) for which coverage is measured.--cov-report term
: Outputs the coverage report directly to the terminal.tests/
: Indicates the directory where your test files are located.
This command ensures that all tests are executed while providing a detailed overview of how much code is covered by your tests.