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.52-55-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eaf2595503ea17eb6ec35698bfefb25c5884abe3cb0283cc205df9db99a9fb1 |
|
MD5 | f72b970209d6bfe290847941c481860a |
|
BLAKE2b-256 | 17af1be206ae957f136e2269b98f85a833d2748375aea9fa2c883ce3932ecbf7 |
Hashes for nanaimo-0.0.52-54-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbbcbd7d34b850712e5cdf104b0201fd093c34fe4efa4634fceb0d1e7f6e0e35 |
|
MD5 | cdf8eb14d9fd5eaf90879169d6ce3bcd |
|
BLAKE2b-256 | 5b44128f02c8b53674febacebfc251efd399619e3b6f5d0103bd76911f84fec8 |