Skip to main content

Arduino TestSuite: Automated Arduino Unit Tests

This Python scripts allows automated running of several Arduino unit tests. The testing process is started on the PC but the tests run on the actual Arduino hardware. One set of unit tests is typically used to test one Arduino library.

The following steps are performed for each set of unit tests:
  1. The script compiles and uploads an Arduino sketch that contains the unit testing.

  2. The unit tests are run on the Arduino board.

  3. The results of the test are printed over the serial port and analyzed by the Python script.

  4. The script starts the next test, repeating steps 1,2 and 3 for all test that are requested in the configuration file. The script prints a summary showing an overview of all the failed/passed tests in the complete testsuite.

Installation:

Usage:

Requirements:

Limitations:

  • Currently only tested on Linux

  • Default paths are configured for Linux

  • Subprocess handling only works on Linux

  • The program was created with other OS users in mind, so it will eventually get full cross-platform support. Help from Windows-developers is much appreciated.

License:

If not stated otherwise ArduinoTestSuite is distributed in terms of the GPLv2 software license. See COPYING in the distribution for details.

Bug reports:

Changelog:

0.2.2: Error handling:
  • Compile & upload errors

  • Timing: timeout for uploading & running of the tests

  • Missing files: wrong test folder, no config file

  • Hardware: Disconnect Arduino during test

0.2.1: Settings & configuration
  • Passing cli arguments & cli help messages

  • Settings separated from other code

  • Start tests from config file

0.2: First working OOP version
  • Subprocess for arscons

  • Classes: Test, TestSuite, InfoPrinter

  • Divided the code in several modules

0.1: Initial release:
  • Call scons

  • Run unit test

  • Print summary

Metadata

Release files for arduino_testsuite 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arduino_testsuite 0.2.2
File Size Uploaded Provenance
arduino_testsuite-0.2.2.tar.gz 18.2 kB Without provenance Details

Release files / arduino_testsuite-0.2.2.tar.gz

Download URL arduino_testsuite-0.2.2.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e47a796e8aa05d9e8ba7cedcb3a73ea8b26dda9589243c2be33754a8f12d17c9
BLAKE2b-256 checksum
How to use checksums
10ee68f06feba2d61cd14739d8d157b8692de23052266a94a442b2d7df439c15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for arduino_testsuite 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page