Skip to content
Snippets Groups Projects
Commit 2a5d07cf authored by Benedikt Conze's avatar Benedikt Conze
Browse files

Abort integration test if test files aren't found

parent 6750b631
Branches
Tags
1 merge request!45Merge branch 'release/v1.2.0' into 'master'
......@@ -300,20 +300,14 @@ TEST_P(IntegrationFixture, myNameIntegrationTest) {
(getRwthOnlineFileName(firstAttemptConfig).toStdString() + ".csv");
const auto bonusPath = rootPath / "bonus" / "bonus.csv";
if (!exists(dynexitePath)) {
ADD_FAILURE() << "Found no corresponding file for "
<< dynexiteFileName.toStdString();
}
ASSERT_TRUE(exists(dynexitePath))
<< "Found no corresponding file for " << dynexiteFileName.toStdString();
if (!exists(rwthOnlinePath)) {
ADD_FAILURE()
<< "Found no corresponding file for first attempt configuration "
<< std::to_string(firstAttemptConfig);
}
ASSERT_TRUE(exists(rwthOnlinePath))
<< "Found no corresponding file for first attempt configuration "
<< std::to_string(firstAttemptConfig);
if (useBonus && !exists(bonusPath)) {
ADD_FAILURE() << "Found no bonus file";
}
ASSERT_TRUE(!useBonus || exists(bonusPath)) << "Found no bonus file";
QSharedPointer<CsvDump> dynexiteDump;
QSharedPointer<CsvDump> rwthDump;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment