Skip to content

m-chichikalov/uhsdr-unit-tests

Repository files navigation

Collection of UNIT and INTEGRATION tests for UHSDR.

UHSDR stands for UniversalHamSoftwareDefinedRadio - REPO. So far the UHSDR code cloned as a git submodule and will be updated regularly.

  • SoftWare in use:
    • Catch2 - run tests on the HOST.
    • Unity - on the target.
    • Segger RTT - output test results from target.
    • CMake - as a build processing system.

Objective

To cover as much as possible and at the same time do not write fragile tests.

Motivation

When you start contribute into a project with huge history and legacy it's always very easy to brake it while trying to implement/ enhance something, especialy when there is no any unit and/or integration tests. Indeed, it happens when I addded some features.

The last straw on the camel's back were attempts to catch the bugs in huge, NONE maintainable, glued from chunks the state machine which generate CW code.

To build the confidence on my PRs I'm going start covering by tests the code that I'm touching. I believe it's a good practice, isn't it?

Build

mkdir .build && cd .build
cmake .. -G "proper_to_you_generator"
make

About

Collection of UNIT and INTEGRATION tests for UHSDR.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published