File: README

package info (click to toggle)
cppunit 1.15.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,768 kB
  • sloc: cpp: 12,701; sh: 4,280; ansic: 687; makefile: 401; xml: 58
file content (23 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
This directory contains some examples of using CppUnit.

The test "hierarchy" is a small example, demonstrating
CPPUNIT_TEST_SUITE / CPPUNIT_TEST / CPPUNIT_TEST_SUITE_END family of
macros.  The "testResetShouldFail" test is included only to show the
output when a failure happens.  Normally one only tests for successes.

The test "cppunittestmain" is a test suite for CppUnit itself.
As you might expect, it is rather large.


You should be able to build these examples using the following
sequence of commands.

	sh setup.sh
	./configure
	make check

The CppUnit Cookbook is a good place to start -- look at
http://localhost/doc/cppunit/html/index.html.  If someone
would type in this code, I'll be happy to include it in the
next release.