0
I Use This!
Activity Not Available
Analyzed over 1 year ago. based on code collected over 1 year ago.

Project Summary

Simple unit testing for c/c++This is as simple and easy to use unit testing as it gets. It consists of a single header file. It won't displace cppunit and boost::test, but it is enough to quickly write and run your test cases.

A c sample

#include
#include

#include "tinytest.h"

int t1(void)
{
int* p = NULL;
TINYTEST_ASSERT(!p);
TINYTEST_ASSERT(!printf(""));
return 1; // Always return a value different than 0 at test end.
}

int t2(void)
{
int* x = (int*)malloc(sizeof(int));
TINYTEST_ASSERT(x);
free(x);
return 1; // Always return a value different than 0 at test end.
}

TINYTEST_START_SUITE(SimpleSuite);
TINYTEST_ADD_TEST(t1);
TINYTEST_ADD_TEST(t2);
TINYTEST_END_SUITE();

TINYTEST_MAIN_SINGLE_SUITE(SimpleSuite);

Tags

c cpp test unittest

In a Nutshell, tinytest...

Apache License 2.0
Permitted

Commercial Use

Modify

Distribute

Place Warranty

Sub-License

Private Use

Use Patent Claims

Forbidden

Hold Liable

Use Trademarks

Required

Include Copyright

State Changes

Include License

Include Notice

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    anyone with an Open Hub account can update a project's tags
  • ...
    65% of companies leverage OSS to speed application development in 2016
  • ...
    check out hot projects on the Open Hub

Languages

Languages?height=75&width=75
C
81%
C++
16%
Make
3%

30 Day Summary

Apr 9 2016 — May 9 2016

12 Month Summary

May 9 2015 — May 9 2016

Ratings

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!