Sput Unit Testing Framework for C/C++

Sput Mascot

Sput is a unit testing framework for C/C++ that focuses on simplicity of use and maximum portability.

It is implemented as a single ANSI C compliant header file that provides all macros needed to start unit testing in nearly no time: 10 minutes and you are good to go!

Latest download: Sput v1.3.1, 6.19 kB


Why Choose Sput?

Sput's simplicity and portability allow you to rapidly learn how to use its testing macros, to write intuitive test cases and to compile and run your tests on all operating systems that an ANSI C compiler is provided for.

Clipboard - check your software with unit tests

As Sput consists of a single header file only, you just have to add it to your project and are done. No library needs to be compiled, no external dependencies have to be satisfied.

Sput gives you a reasonably trimmed set of macros that allow you to focus on your test cases without getting in your way!

Who Is Already Using Sput?

Sput is already in use in both commercial and Open Source projects.

Open Source projects using Sput include:

Are you using Sput in one of your projects and like to see your project listed here?
Drop us a line!

Supported Platforms

Sput is written in plain ANSI C and does not use any operating specific code. Therefore, it should build and be usable on any operating system that a C compiler is available for.

The following operating systems and architectures have been tested and are known to work:


Supported Compilers

The following compilers have been tested and are known to work:


Sput comes with a short tutorial that provides all the knowledge required to use the unit testing framework in nearly no time.

License (Open Source)

OSI approved license

Sput is both Open Source and Free Software provided under the terms of the liberal, OSI approved 2-clause BSD License.

That means, you can use Sput to test your software projects free of charge, both open source and commercial ones.

For details, have a look at the "LICENSE" file included with the