Skip to content

Commit

Permalink
Update test execution to return combined status of all tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Jan 11, 2025
1 parent 243d5af commit 67ca653
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tests/Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,30 @@ int main(int argc, char* argv[])
QApplication::setStyle(style);
setLightPalette();

int status{EXIT_SUCCESS};
DoubleSliderTest doubleSliderTest;
QTest::qExec(&doubleSliderTest);
status |= QTest::qExec(&doubleSliderTest);

FilterDatesTest filterDatesTest;
QTest::qExec(&filterDatesTest);
status |= QTest::qExec(&filterDatesTest);

FilterStringsTest filterStringsTest;
QTest::qExec(&filterStringsTest);
status |= QTest::qExec(&filterStringsTest);

FilterIntegersTest filterIntegersTest;
QTest::qExec(&filterIntegersTest);
status |= QTest::qExec(&filterIntegersTest);

FilterDoublesTest filterDoublesTest;
QTest::qExec(&filterDoublesTest);
status |= QTest::qExec(&filterDoublesTest);

ProgressBarCounterTest progressBarCounterTest;
QTest::qExec(&progressBarCounterTest);
status |= QTest::qExec(&progressBarCounterTest);

ProgressBarInfiniteTest progressBarInfiniteTest;
QTest::qExec(&progressBarInfiniteTest);
status |= QTest::qExec(&progressBarInfiniteTest);

UtilitiesTest utilitiesTest;
QTest::qExec(&utilitiesTest);
status |= QTest::qExec(&utilitiesTest);

return 0;
return status;
}

0 comments on commit 67ca653

Please sign in to comment.