8.1 Test suite 8.3 Test Framework Libraries Available Outside Simics
Simics Reference Manual  /  8 Test Framework  / 

8.2 Defining Test Suites

The test framework supports two ways to discover tests in a suite:

8.2.1 Automatic Detection of Tests

In general, the test framework will search the files inside the suite directory and add a Simics test for each file matching the pattern "s-*.py", the test name will be named after the script file, with the extension stripped.

8.2.2 Explicit Registration of Tests

If the suite directory contains a tests.py file, the framework imports this file as a Python module and runs the tests function defined within in order to add tests to the suite. The signature of this function is: def tests(suite).

The suite parameter supports the following methods:

8.1 Test suite 8.3 Test Framework Libraries Available Outside Simics