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.41-44-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a9984e716ac58e87138d791c9b8eb04b0dff88d86eda7e8a5573e671109a1e |
|
MD5 | d545588194574656b086b7a94ecd4d71 |
|
BLAKE2b-256 | 1253829f05297d1c824c08748ef7d693e3db07125f09d4896b4c2f3815547f49 |
Hashes for nanaimo-0.0.41-43-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782b07d24e390fb4450735bf8582e0112e308a57a0865b68890539c4fe0c4236 |
|
MD5 | b0416db76f807939d4d0daadc87c7351 |
|
BLAKE2b-256 | 15b34fef684563820e0d4a75cd1e9316f2ad9da64f6e6955eae8009d768efabf |