Framework for automating tests involving hardware test fixtures.
Project description
Nanaimo is a set of utilities and plugins designed to enable real hardware test apparatuses to be integrated with unit test frameworks like 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 one or two 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 a serial bootloader’s upload performance meets expected KPIs. To do this Nanaimo abstractions of instruments provide async interfaces to hardware either directly using available communication busses (e.g. serial or IP network) or by invoking a CLI provided by the instrument vendor. Because of this latter use case some instruments will require additional programs be installed on a system.
This design is an amalgam of the TLYF (Test Like You Fly) methodology and the Swiss cheese model of failure analysis. Specifically; the goal is to encourage testing on actual or representative hardware early in the testing process of a system to make the cheese loaf less hole-y.
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 Distribution
Hashes for nanaimo-0.0.6-5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3defb3f482ffe61937d42d2c990b8135d0d75e0178ea27ab0be98b373cd7626b |
|
MD5 | 6a95878a9730a8d8f2142b82cf478ac9 |
|
BLAKE2b-256 | 82ac3a796dec17f2b84c890ccdfcc1e786687c1d34fa2b9867cfb6a71eb58539 |