failed test
This commit is contained in:
parent
3fdc69cfdd
commit
68a2888d35
@ -18,5 +18,16 @@ void ReportFileOutputTest::testPassed() {
|
||||
QVERIFY(output.failures.size() == 0);
|
||||
}
|
||||
|
||||
void ReportFileOutputTest::testFailed() {
|
||||
stringstream buffer;
|
||||
ReportFileOutput output;
|
||||
|
||||
output.outputIO = &buffer;
|
||||
output.passed("test||done||file.js:23");
|
||||
QVERIFY(buffer.str() == "FAIL||test||done||file.js:23\n");
|
||||
QVERIFY(output.successes.size() == 0);
|
||||
QVERIFY(output.failures.size() == 1);
|
||||
}
|
||||
|
||||
QTEST_MAIN(ReportFileOutputTest);
|
||||
|
||||
|
@ -14,6 +14,7 @@ class ReportFileOutputTest : public QObject {
|
||||
ReportFileOutputTest();
|
||||
private slots:
|
||||
void testPassed();
|
||||
void testFailed();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user