Class Config

Synopsis

#include <include/internal/catch_config.hpp>

class Config : public IConfig

Description

No description yet.

Mentioned in

Inheritance

Ancestors: IConfig

Methods

Config overload
~Config
abortAfter
allowThrows
benchmarkConfidenceInterval
benchmarkNoAnalysis
benchmarkResamples
benchmarkSamples
benchmarkWarmupTime
getFilename
getProcessName
getReporterName
getSectionsToRun
getTestsOrTags
hasTestFilters
includeSuccessfulResults
listReporters
listTags
listTestNamesOnly
listTests
minDuration
name
rngSeed
runOrder
shouldDebugBreak
showDurations
showHelp
showInvisibles
stream
testSpec
useColour
verbosity
warnAboutMissingAssertions
warnAboutNoTests

Source

Lines 74-129 in include/internal/catch_config.hpp.

class Config : public IConfig {
public:
    Config() = default;
    Config( ConfigData const& data );
    virtual ~Config() = default;
    std::string const& getFilename() const;
    bool listTests() const;
    bool listTestNamesOnly() const;
    bool listTags() const;
    bool listReporters() const;
    std::string getProcessName() const;
    std::string const& getReporterName() const;
    std::vector<std::string> const& getTestsOrTags() const override;
    std::vector<std::string> const& getSectionsToRun() const override;
    TestSpec const& testSpec() const override;
    bool hasTestFilters() const override;
    bool showHelp() const;
    // IConfig interface
    bool allowThrows() const override;
    std::ostream& stream() const override;
    std::string name() const override;
    bool includeSuccessfulResults() const override;
    bool warnAboutMissingAssertions() const override;
    bool warnAboutNoTests() const override;
    ShowDurations::OrNot showDurations() const override;
    double minDuration() const override;
    RunTests::InWhatOrder runOrder() const override;
    unsigned int rngSeed() const override;
    UseColour::YesOrNo useColour() const override;
    bool shouldDebugBreak() const override;
    int abortAfter() const override;
    bool showInvisibles() const override;
    Verbosity verbosity() const override;
    bool benchmarkNoAnalysis() const override;
    int benchmarkSamples() const override;
    double benchmarkConfidenceInterval() const override;
    unsigned int benchmarkResamples() const override;
    std::chrono::milliseconds benchmarkWarmupTime() const override;
private:
    IStream const* openStream();
    ConfigData m_data;
    std::unique_ptr<IStream const> m_stream;
    TestSpec m_testSpec;
    bool m_hasTestFilters = false;
};





Add Discussion as Guest

Log in