mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-27 23:19:32 +00:00
Runner -> RunContext, Runner2 -> Runner and fixed issue with processName
This commit is contained in:
parent
1b47e11387
commit
cb60d130f8
6 changed files with 30 additions and 21 deletions
|
@ -122,10 +122,10 @@ namespace Catch {
|
|||
bool listTags() const { return m_data.listTags; }
|
||||
bool listReporters() const { return m_data.listReporters; }
|
||||
|
||||
std::string getName() const {
|
||||
return m_data.name;
|
||||
std::string getProcessName() const {
|
||||
return m_data.processName;
|
||||
}
|
||||
|
||||
|
||||
bool shouldDebugBreak() const {
|
||||
return m_data.shouldDebugBreak;
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ namespace Catch {
|
|||
// IConfig interface
|
||||
virtual bool allowThrows() const { return !m_data.noThrow; }
|
||||
virtual std::ostream& stream() const { return m_os; }
|
||||
virtual std::string name() const { return m_data.name; }
|
||||
virtual std::string name() const { return m_data.name.empty() ? m_data.processName : m_data.name; }
|
||||
virtual bool includeSuccessfulResults() const { return m_data.showSuccessfulTests; }
|
||||
virtual bool warnAboutMissingAssertions() const { return m_data.warnings & ConfigData::WarnAbout::NoAssertions; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue