in agent/src/jetbrains/buildServer/xmlReportPlugin/parsers/mstest/TRXParser.java [129:160]
public boolean parse(@NotNull File file, @Nullable ParsingResult prevResult) throws ParsingException {
myLogger.openTestSuite(myDefaultSuiteName);
if (!file.isFile() || file.length() == 0) {
return false;
}
myTestIdToName.clear();
try {
myNamesParser.parse(file);
if (myTestIdToName.size() == 0) {
myLogger.error("There were no test definitions found. Wrong or broken .trx file?");
} else {
myLogger.info("Found " + myTestIdToName.size() + " test definitions.");
}
myResultsParser.parse(file);
} catch (IOException e) {
throw new ParsingException(e);
}
if (myReportedTestsCount == 0) {
myLogger.error("There were no tests reported. Wrong or broken .trx file?");
} else {
myLogger.info(myReportedTestsCount + " test(s) were reported");
}
myLogger.closeTestSuite();
return true;
}