Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
doc
include
samples
src
tests
AUTHORS
COPYING
ChangeLog
INSTALL
LICENSE
Makefile.am
Makefile.w32
NEWS
README
README.osx
README.win32
TODO
VERSION
autogen.sh
cgreen.pc.in
cgreen.spec.in
configure.in
unbuildit.sh

README

Cgreen
======
You probably got this package from...
http://cgreen.sourceforge.net/projects/cgreen/

If there is no licence agreement with this package please download
a version from the location above. You must read and accept that
licence to use this software. The file is titled simply LICENSE.

What is it? It's a framework for unit testing, written in C. A tool
for C developers writing tests of their own code.

If you have used JUnit, or any of the xUnit clones, you will find
the concept familiar. In particular the tool supports a range of
assertions, composable test suites and setup/teardown facilities.
Because of the peculiarities of C programming, each test function
is normally run in it's own process.

This project is very close in scope to the "Check" unit tester and
was influenced by it...
http://check.sourceforge.net/projects/check/

The main difference from this tool and other xUnit tools, such as
"Check",  is that test results are not stored. Instead they are
streamed to the reporter psuedo-class, one that is easily
overridden by the end user.

The other main extra feature is the support for writing mock
callbacks. This includes generating sequences for return values
or parameter expectations.

There is only one make file of signficance, and that's in the
root directory. Running make will build cgreen.a and cgreen.h
on a Unix (gcc) setup. You can then include these as normal
library files in your project. You may have to hack the makefile.
Once I figure out how automake works, things will improve.

This project would not have happened without the generous
financial support of the Wordtracker keyword tool...
http://www.wordtracker.com/

This tool is basically a spin off from that project.

Feedback and queries should be sent to myself until a mail list
has been set up.

yours Marcus Baker
-- 
marcus@lastcraft.com
marcus@wordtracker.com