Api.h
1/* Copyright (C) 2005-2008 by Dr. Marc Boris Duerner
2 SPDX-License-Identifier: LGPL-2.1-or-later WITH mif-exception
3*/
4
5#ifndef PT_UNIT_API_H
6#define PT_UNIT_API_H
7
8#include <Pt/Api.h>
9
10#define PT_UNIT_VERSION_MAJOR PT_VERSION_MAJOR
11#define PT_UNIT_VERSION_MINOR PT_VERSION_MINOR
12#define PT_UNIT_VERSION_REVISION PT_VERSION_REVISION
13#define PT_UNIT_VERSION_PRERELEASE PT_VERSION_PRERELEASE
14
15#if defined(PT_UNIT_API_EXPORT)
16# define PT_UNIT_API PT_EXPORT
17# else
18# define PT_UNIT_API PT_IMPORT
19# endif
20
21#endif
22
23namespace Pt {
24
30
46namespace Unit {
47
48 class Application;
49 class Assertion;
50 class Reporter;
51 class Test;
52 class TestCase;
53 class TestContext;
54 class TestFixture;
55 class TestProtocol;
56 class TextProtocol;
57 class TestSuite;
58
59}
60
61}
Run registered tests.
Definition Application.h:81
Test Assertion exception
Definition Assertion.h:80
Test event reporter
Definition Reporter.h:56
Single test with setup and teardown.
Definition TestCase.h:82
Context in which test are run.
Definition TestContext.h:47
Fixture interface for tests.
Definition TestFixture.h:42
Protocol for test suites.
Definition TestProtocol.h:93
Protocol and data driven testing.
Definition TestSuite.h:84
Test base class
Definition Test.h:55
Implements a simple text protocol.
Definition TextProtocol.h:43
Protocol and data driven unit testing framework.
Core module.
Definition Allocator.h:33