Welcome to mirror list, hosted at ThFree Co, Russian Federation.

testing.cpp « testing « src - github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1e89d429e5cff3d875bddaedec78daaa03b8584e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * \file   testing.cpp
 * \brief  Automated testing framework.
 * \author Copyright (c) 2007-2008 Jason Perkins and the Premake project
 */

#include <cstdio>
#include "testing.h"
#include "UnitTest++/src/TestReporterStdout.h"


/**
 *  Run a particular suite of tests.
 * \param   suite    The name of the suite to run.
 * \returns OKAY if all tests passed successfully.
 */
int tests_run_suite(const char* suite)
{
	UnitTest::TestReporterStdout reporter;
	std::printf("Testing %s...\n", suite);
	return UnitTest::RunAllTests(reporter, UnitTest::Test::GetTestList(), suite);
}