Framework for automating tests involving hardware test fixtures.
Project description
Nanaimo is a set of utilities and plugins designed to enable integration of hardware test apparatuses with pytest. This can allow on-target tests to run as part of continuous integration pipelines like Buildkite, Bamboo, or Jenkins.
Nanaimo is designed to enable testing of software-defined, physical components in isolation to provide pre-integration verification of software interfaces and behavioral contracts. It adapts asynchronous control and monitoring of these components to fit familiar testing idioms (e.g. x-unit testing) using the popular python test framework, pytest.
Nanaimo is not a simulation framework and is not designed to support the complexity of a full hardware-in-the-loop platform. Instead it’s focused on testing small integrations with a few hardware components and instruments using concepts, syntax, and frameworks familiar to software engineers. Examples of these small integrations might include verifying a SPI driver for a microcontroller or ensuring the upload time for a serial bootloader meets expected Key-Performance-Indicators (KPIs). To do this Nanaimo abstractions provide async interfaces to hardware either directly using available communication protocols (e.g. serial or IP networks) or by invoking a CLI provided by the instrument vendor. Because of this latter use case some instruments will require additional programs be available in a test environment.
This design is an amalgam of the TLYF (Test Like You Fly) methodology and the Swiss cheese model of failure analysis. Specifically; Nanaimo facilitates testing on actual or representative hardware for the first integration of software into a part or subassembly. Traditionally software engineers were responsible only for unit-testing and Software-In-the-Loop (SIL) simulation of their code. Nanaimo encourages software engineers to also provide hardware integration tests by enabling Hardware-In-the-Loop continuous-integration (HIL-CI, perhaps?).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for nanaimo-0.0.50-52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eeb68eb0f78228b77b0ff1b6b06579146a849c6560817a24b47cf4445b3d5d9 |
|
MD5 | 3a870af17c41f42a83092b904e87489d |
|
BLAKE2b-256 | 1a4d017e4c5af87030826c3a92d70306fced5d8443c9e3062885b2dcb8df1940 |
Hashes for nanaimo-0.0.50-51-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b31f00644962c0010559d28c77b4784aeda30e8d63f393977ffc7bff3be4fb |
|
MD5 | f2618db1cf551f3870cee6c60aa6a9c8 |
|
BLAKE2b-256 | 195be6b3f923a99c896fe29af64ff95e813715714cf20848646d1fa55e00a44c |