[TangerineSDR] Unit testing

Engelke, Bill bill.engelke at ua.edu
Tue Nov 26 09:50:07 EST 2019

Rob - OK, I just wanted to see if you had a preference.  I'm looking at the cunit package for C. I will have a complete test suite that covers as much as possible (which means, as you mention, using a couple of different ones). 

Thanks & have a great Thanksgiving   - 73- Bill

-----Original Message-----
From: TangerineSDR <tangerinesdr-bounces at lists.tapr.org> On Behalf Of Rob Wiesler via TangerineSDR
Sent: Monday, November 25, 2019 3:00 PM
To: TAPR TangerineSDR Modular Software Defined Radio <tangerinesdr at lists.tapr.org>
Cc: Rob Wiesler <robert.wiesler at case.edu>
Subject: Re: [TangerineSDR] Unit testing

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).

TangerineSDR mailing list
TangerineSDR at lists.tapr.org

More information about the TangerineSDR mailing list