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.48-49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d93bb289a49b2495d8d792a89453d420e0078e74738b127b6a8410b46e4a2c63 |
|
MD5 | cb8abaaab7f98104c448904796c5b9d0 |
|
BLAKE2b-256 | 6e9e4fc40cf5c4ffd09f5feb0b681c3dc9bcd7a1fb646e34ab4c3256a416c68e |
Hashes for nanaimo-0.0.48-48-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f55076e2f6d5ffd1c19abdaf894256bdaa745256f5e73ff7611c7ecdd3b868 |
|
MD5 | 1e4a8ca1396d66cf0b637148a6f0aeb5 |
|
BLAKE2b-256 | 5801013a48e4fbc4c2a28ba11cc81151453bd1d49198cf7334136e4e561b2d75 |