Giter Site home page Giter Site logo

la-toth / tinu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from herczy/tinu

2.0 2.0 0.0 766 KB

TINU unit test framework

Home Page: https://tracker.bteam.hu/projects/tinu/

License: BSD 3-Clause "New" or "Revised" License

C++ 2.92% C 85.34% Shell 9.29% Python 2.45%

tinu's Introduction

What is TINU?
-------------

  TINU is a unit testing framework for C and C++ (through a wrapper) languages.
  It was designed to give the programmer as much helpful information as neccessary,
  so that errors found can be traced down and fixed as fast as possible. Unfortunately
  this makes tinu a bit bigger than other unit test frameworks.

How to compile?
---------------

  TINU uses autoconf and automake for building. However you don't need to have them
  installed (only if you intend to modify the Makefiles and the configure files).

  Compiling can be done the following way:

    $ ./configure --prefix=/usr

  After configure returns without errors, you can build and install the package the
  following way:

    $ make
    $ make install

How to use?
-----------

  Using Tinu is easy. If you compile your unit tests by hand, use the following:

    $ $CC -o unittest unittest.c $(pkg-config tinu --libs --cflags)

  If you use Tinu from autoconf/automake project, just add

    PKG_CHECK_MODULES(LIBTINU, tinu >= 0.1a)

  to your configure.ac file and

    yourunittest_CFLAGS = @CFLAGS@
    yourunittest_LDFLAGS = @LDFLAGS@

The CPP wrapper
---------------

  Tinu has a CPP wrapper (called cxxwrap) for making Tinus integration into C++
  projects easier. At the time of writing the following C/C++ mappings have been
  implemented:

    * CxxTinu: wrapper for the tinu_main, tinu_test_add and related functions. Should
               be instantiated at the beginning of the main function. No further
               actions are neccessary as the destructor takes care of running the
               main function and returning the appropriate response.

    * CxxTest: test cases can be implemented with these. CxxTest descended classes
               are registered using CxxTinu::add_test.

    * CxxMessageHandler: used for implementing custom message handlers.

    * CxxLeakwatch: used for implementing custom leak-detectors.

    * There are also other classes but they are used with the ones mentioned above.

Copyrights
----------

  TINU is copyright (c) 2009, 2010 Viktor Hercinger <[email protected]> amd
  is distributed under the terms of the BSD license.

  For further details see the file COPYING

  Coredumper is copyright (c) 2005-2007, Google Inc. and is distributed under the terms
  of the BSD license.

  For further details see the file COPYING.coredumper

tinu's People

Contributors

herczy avatar la-toth avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.