1 /* Subunit test listener for cppunit (http://cppunit.sourceforge.net).
2 * Copyright (C) 2006 Robert Collins <robertc@robertcollins.net>
4 * Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
5 * license at the users choice. A copy of both licenses are available in the
6 * project source as Apache-2.0 and BSD. You may not use this file except in
7 * compliance with one of these two licences.
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under these licenses is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the license you chose for the specific language governing permissions
13 * and limitations under that license.
15 #ifndef CPPUNIT_SUBUNITTESTPROGRESSLISTENER_H
16 #define CPPUNIT_SUBUNITTESTPROGRESSLISTENER_H
18 #include <cppunit/TestListener.h>
25 * \brief TestListener that outputs subunit
26 * (http://www.robertcollins.net/unittest/subunit) compatible output.
27 * \ingroup TrackingTestExecution
29 class CPPUNIT_API SubunitTestProgressListener
: public TestListener
33 SubunitTestProgressListener() {}
35 void startTest( Test
*test
);
37 void addFailure( const TestFailure
&failure
);
39 void endTest( Test
*test
);
42 /// Prevents the use of the copy constructor.
43 SubunitTestProgressListener( const SubunitTestProgressListener
©
);
45 /// Prevents the use of the copy operator.
46 void operator =( const SubunitTestProgressListener
©
);
55 #endif // CPPUNIT_SUBUNITTESTPROGRESSLISTENER_H