Other tools can use this information to, for example, collect all modules marked as formal tests and run formal verification on them. This is particularly useful in combination with the UnitTest trait.
Value parameters
module
The module to be marked.
name
Optional name for the test. Uses the module name by default.
params
Optional user-defined test parameters.
Attributes
Example
The following creates a module marked as a formal test:
class TestHarness extends RawModule {
FormalTest(this)
}
Additional parameters may be passed to the test, which other tools may use to control how the test is interpreted or executed: