Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IUnitTest.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* IUnitTest.h (C) 2000-2024 */
9/* */
10/* Interface of a unit test service. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13#ifndef ARCANE_CORE_IUNITTEST_H
14#define ARCANE_CORE_IUNITTEST_H
15/*---------------------------------------------------------------------------*/
16/*---------------------------------------------------------------------------*/
17
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25class XmlNode;
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
35{
36 public:
37
38 virtual ~IUnitTest() = default;
39
40 public:
41
43 virtual void buildInitializeTest() {}
44
46 virtual void initializeTest() = 0;
47
49 virtual void executeTest() = 0;
50
52 virtual void finalizeTest() = 0;
53};
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
64{
65 public:
66
67 virtual ~IXmlUnitTest() = default;
68
69 public:
70
71 virtual void buildInitializeTest() {}
72 virtual void initializeTest() = 0;
79 virtual bool executeTest(XmlNode& report) = 0;
80 virtual void finalizeTest() = 0;
81};
82
83/*---------------------------------------------------------------------------*/
84/*---------------------------------------------------------------------------*/
85
86} // End namespace Arcane
87
88/*---------------------------------------------------------------------------*/
89/*---------------------------------------------------------------------------*/
90
91#endif
Arcane configuration file.
Interface of a unit test service.
Definition IUnitTest.h:35
virtual void initializeTest()=0
Method called after reading the dataset to initialize the test.
virtual void buildInitializeTest()
Method called after reading the dataset but before reading the mesh.
Definition IUnitTest.h:43
virtual void executeTest()=0
Method called to execute the test.
virtual void finalizeTest()=0
Method called to release resources at the end of execution.
Interface of a unit test service providing a test report in the form of an XML node.
Definition IUnitTest.h:64
virtual bool executeTest(XmlNode &report)=0
Executes the test and fills the provided XML node parameter.
Node of a DOM tree.
Definition XmlNode.h:51
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --