mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Added self-test for section ordering
Added MockReporter for tracking test runs. Added intrusive smart pointer. Config holds reporter by smart pointer, so we can route the mock reporter through multiple test runs
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Catch
|
||||
std::string m_label;
|
||||
};
|
||||
|
||||
class BasicReporter : public IReporter
|
||||
class BasicReporter : public SharedImpl<IReporter>
|
||||
{
|
||||
struct SpanInfo
|
||||
{
|
||||
@@ -311,7 +311,7 @@ namespace Catch
|
||||
break;
|
||||
}
|
||||
|
||||
if( resultInfo.hasExpression() && resultInfo.getExpression() != resultInfo.getExpandedExpression() )
|
||||
if( resultInfo.hasExpandedExpression() )
|
||||
{
|
||||
m_config.stream() << " for: ";
|
||||
TextColour colour( TextColour::ReconstructedExpression );
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace Catch
|
||||
{
|
||||
class JunitReporter : public Catch::IReporter
|
||||
class JunitReporter : public SharedImpl<IReporter>
|
||||
{
|
||||
struct TestStats
|
||||
{
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace Catch
|
||||
{
|
||||
class XmlReporter : public Catch::IReporter
|
||||
class XmlReporter : public SharedImpl<IReporter>
|
||||
{
|
||||
public:
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
@@ -29,7 +29,7 @@ namespace Catch
|
||||
)
|
||||
: m_config( config )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
static std::string getDescription
|
||||
|
Reference in New Issue
Block a user