diff options
| author | Martin Hořeňovský | 2018-07-14 20:51:02 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-07-14 20:51:02 +0200 |
| commit | d6c7392b24ef9a74b4a3abe0445b7fad0e3bea4e (patch) | |
| tree | 949c4256d1994f63f5c74fcdfaab6080d534f07b /include/internal/catch_run_context.cpp | |
| parent | 9ee4c1db5294a7245920bbbf93e85aa47e646595 (diff) | |
| download | catch3-d6c7392b24ef9a74b4a3abe0445b7fad0e3bea4e.tar.gz | |
Add a new reporter customization point: reporting all assertions
By opting the JUnit and XML reporters into it, we no longer run
into problem where they underreport the results without `-s` flag.
Related to #1264, #1267, #1310
Diffstat (limited to 'include/internal/catch_run_context.cpp')
| -rw-r--r-- | include/internal/catch_run_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/catch_run_context.cpp b/include/internal/catch_run_context.cpp index 73558521..ecaa34db 100644 --- a/include/internal/catch_run_context.cpp +++ b/include/internal/catch_run_context.cpp @@ -17,7 +17,7 @@ namespace Catch { m_config(_config), m_reporter(std::move(reporter)), m_lastAssertionInfo{ StringRef(), SourceLineInfo("",0), StringRef(), ResultDisposition::Normal }, - m_includeSuccessfulResults( m_config->includeSuccessfulResults() ) + m_includeSuccessfulResults( m_config->includeSuccessfulResults() || m_reporter->getPreferences().shouldReportAllAssertions ) { m_context.setRunner(this); m_context.setConfig(m_config); |