Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Define a name for the test module.
#define BOOST_TEST_MODULE testTemplateServer
// Only after defining the name include the unit test header.
#include <boost/test/included/unit_test.hpp>
#include <ChimeraTK/ApplicationCore/TestFacility.h>
#include "Server.h"
// Declare the server instance
static Server theServer;
static ChimeraTK::TestFacility testFacility;
struct TestFixture {
TestFixture(){
testFacility.runApplication();
}
};
static TestFixture fixture;
using namespace boost::unit_test_framework;
/// TestSuite for the server, adapt name
BOOST_AUTO_TEST_SUITE(TemplateServerTestSuite)
/**********************************************************************************************************************/
/// A template test case
BOOST_AUTO_TEST_CASE(testTemplate){
std::cout << "testTemplate" << std::endl;
}
/**********************************************************************************************************************/
BOOST_AUTO_TEST_SUITE_END()