Skip to main content

Arduino TestSuite for automated Arduino Unit Testing

Project description

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 arduino_testsuite 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arduino_testsuite-0.2.2b.tar.gz (18.5 kB view details)

Uploaded Source

File details

Details for the file arduino_testsuite-0.2.2b.tar.gz.

File metadata

File hashes

Hashes for arduino_testsuite-0.2.2b.tar.gz
Algorithm Hash digest
SHA256 bf6232147288542e5e35023359ed418f40c31510919eba4e14224a6f14bfe813
MD5 b2776693b1f742e8a6ece44cb300f986
BLAKE2b-256 aa1c21b6819d739bd335750fc227f19a891c76bc78c601c299aca2e245a883c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page