[TangerineSDR] Unit testing

Rob Wiesler robert.wiesler at case.edu
Mon Nov 25 16:00:17 EST 2019

On Mon, Nov 25, 2019 at 20:00:38 +0000, Engelke, Bill wrote:
> Rob - what would you think would be the best Unit Testing package for
> developing the automated unit tests for the SBC portion of the
> TangerineSDR?  -73- Bill

I don't really have much of an opinion.  Unit testing frameworks all
basically do the same thing, just for code written in different
languages and with differently-named functions.

I suspect that we'll end up wanting at least two unit testing frameworks
(at least one for C and/or C++, and one for Python for the web
application (and possibly higher-level tests of system functionality)).
Python ships with one (pyunit), so nearly everyone uses that one (and we
should too).  C and C++ have diverse unit testing ecologies, which makes
picking one a little obnoxious.  Quite honestly, I don't usually see
much of a point in using a framework for unit-testing C code - I just
write tests as separate programs in a separate source directory, and
then hook autopkgtest up to them (see [0]).

[0] https://people.debian.org/~mpitt/autopkgtest/README.package-tests.html

I know I sound like I only know the one song, but the only advice I can
give is to make sure whatever unit testing frameworks you pick are
packaged in Debian (and Ubuntu).

More information about the TangerineSDR mailing list