Do not print all debug categories in tests
parent
24e7c2983f
commit
3174387e96
|
|
@ -66,7 +66,7 @@ void Engine::start(ProxyConfiguration *configuration)
|
||||||
clean();
|
clean();
|
||||||
|
|
||||||
m_configuration = configuration;
|
m_configuration = configuration;
|
||||||
qCDebug(dcApplication()) << "Using configuration" << m_configuration;
|
qCDebug(dcEngine()) << "Using configuration" << m_configuration;
|
||||||
|
|
||||||
// Make sure an authenticator was registered
|
// Make sure an authenticator was registered
|
||||||
Q_ASSERT_X(m_authenticator != nullptr, "Engine", "There is no authenticator registerd.");
|
Q_ASSERT_X(m_authenticator != nullptr, "Engine", "There is no authenticator registerd.");
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,8 @@ void BaseTest::restartEngine()
|
||||||
|
|
||||||
void BaseTest::startEngine()
|
void BaseTest::startEngine()
|
||||||
{
|
{
|
||||||
|
QLoggingCategory::setFilterRules("*.debug=false\ndefault.debug=true\nApplication.debug=true");
|
||||||
|
|
||||||
m_configuration = new ProxyConfiguration(this);
|
m_configuration = new ProxyConfiguration(this);
|
||||||
loadConfiguration(":/test-configuration.conf");
|
loadConfiguration(":/test-configuration.conf");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,8 +118,7 @@ public slots:
|
||||||
connection->ignoreSslErrors();
|
connection->ignoreSslErrors();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void verifyError(const QVariant &response, const QString &fieldName, const QString &error)
|
inline void verifyError(const QVariant &response, const QString &fieldName, const QString &error) {
|
||||||
{
|
|
||||||
QJsonDocument jsonDoc = QJsonDocument::fromVariant(response);
|
QJsonDocument jsonDoc = QJsonDocument::fromVariant(response);
|
||||||
QVERIFY2(response.toMap().value("status").toString() == QString("success"),
|
QVERIFY2(response.toMap().value("status").toString() == QString("success"),
|
||||||
QString("\nExpected status: \"success\"\nGot: %2\nFull message: %3")
|
QString("\nExpected status: \"success\"\nGot: %2\nFull message: %3")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue