Test Units Overview
Jump to navigation
Jump to search
What are STRIDE Test Units?
STRIDE Test Units is a general term for xUnit-style test modules running within the STRIDE runtime framework. These tests--written in C and C++--are compiled and linked with your embedded software and run in-place on your target hardware. They are suitable for both developer unit testing as well as end-to-end integration testing.
An external Test Runner is provided which controls the execution of the tests and publishes test results to the local file system and optionally to S2's Internet STRIDE Test Space.
Test Unit Features
In all cases, STRIDE Test Units provide the following capabilities typical of all xUnit-style testing frameworks:
- Specification of a test as a test method
- Aggregation of individual tests into test suites which form execution and reporting units
- Specification of expected results within test methods (typically by using one or more Test Code Macros)
- Test fixturing (optional setup and teardown)
- Test parametrization (optional constructor/initialization parameters)
- Automated execution
- Automated results report generation
Unique STRIDE Test Unit Features
In addition, STRIDE Test Units offer these unique features:
- On-Target Execution
- Tests execute on the target hardware in a true operational environment. Execution and reporting is controlled from a remote Windows or Linux host
- Dynamic Test and Suite Generation
- Test cases and suites can be created and manipulated at runtime
- Test Doubles
- Dynamic runtime function substitution to implement on-the-fly mocks, stubs, and doubles
- Asynchronous Testing Framework (Test Points)
- Support for testing of asynchronous activities occurring in multiple threads
- Multiprocess Testing Framework
- Support for testing across multiple processes running simultaneously on the target
- Automatic Timing Data Collection
- Duration are automatically measured for each test case.
- Automatic Results Publishing to Local Disk and Internet
- Automatic publishing of test results to STRIDE Test Space