Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

SunDevilRocketry/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

203 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE

This submodule has been archived and is no longer in use by Sun Devil Rocketry. We have elected to move the framework to a leaner submodule, and nest each project's tests in their own directory structure. See https://github.com/SunDevilRocketry/sdrtf.

test

Submodule for unit testing in Sun Devil Rocketry firmware.

EXTERNAL DEPENDENCIES:

  • GNU C Compiler (GCC). If you're used to our embedded environment, it's a different version of GCC for testing, you need to build for your own hardware.
  • GNU GCov. This should be included in whatever gives you access to GCC. We use this to generate the coverage reports that tell developers how often a given statement or branch is hit. GDB is also highly recommended.
  • GCovr (simply do pip install gcovr, then add it to your PATH. Alternatively, if you're on linux, you can use your preferred package manager).
  • A bash terminal of some kind. Git Bash is recommended on Windows, and most Linux terminals should do. The makefiles use bash commands during execution to achieve the desired terminal and file output.

GETTING STARTED:

  • Remember to correctly clone the submodule into your firmware repo. It should look similar to how lib and mod do.
  • If this is your first time writing or modifying a unit test for SDR, take a look at some others to get an example!
  • If you need to create a new test, ~~THE TOOL DOESN'T EXIST YET. Try copying an existing test or ask me (@etsells) for help.
  • When modifying a test, pay close attention to the coverage report and the results. APPA and mod should be achieving full statement coverage (100% lines).
  • Formal runs cannot be kicked off manually, but you can make sure it's working correctly by testing locally (make test).

About

Unit test submodule for Sun Devil Rocketry firmware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors