-
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathJUnitListener.cpp
More file actions
39 lines (31 loc) · 725 Bytes
/
JUnitListener.cpp
File metadata and controls
39 lines (31 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "JUnitListener.h"
#include "JUnitReport.h"
JUnitListener::JUnitListener()
{
}
void JUnitListener::setReportFile(const File &newReportFile)
{
reportFile = newReportFile;
}
void JUnitListener::validationStarted(const String &)
{
}
void JUnitListener::logMessage(const String &)
{
}
void JUnitListener::itemComplete(const String &id, int, const PluginTestResultArray &itemResults)
{
results.set(id, itemResults);
}
void JUnitListener::allItemsComplete()
{
if (!reportFile.getFullPathName().isEmpty())
{
JUnitReport::write(results, reportFile);
}
}
void JUnitListener::connectionLost()
{
Validator::Listener::connectionLost();
// TODO: create report when connection is lost
}