9.1 Test suite 9.3 Test Framework Libraries Available Outside Simics
Simics Reference Manual  /  9 Test Framework  / 

9.2 Defining Test Suites

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

9.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.

9.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:

9.1 Test suite 9.3 Test Framework Libraries Available Outside Simics