Commits

Matt Oswald committed 8feb0dd

making the default output more closely match what Visual Studio expects

Comments (0)

Files changed (1)

xUnit++/DefaultReporter.cpp

 #include "DefaultReporter.h"
+#include <cstdio>
 #include <iostream>
 #include "TestDetails.h"
 
 
     void ReportFailure(const TestDetails &testDetails, const std::string &msg)
     {
-        std::cout << (testDetails.Filename + ":" + std::to_string(testDetails.Line) +
-            " error: Test [" + testDetails.Name + "] failed with: " + msg + "\n");
+        std::cerr << (testDetails.Filename + "(" + std::to_string(testDetails.Line) +
+            "): error " + testDetails.Name + ": " + msg + "\n");
     }
 
     void ReportFinish(const TestDetails &, std::chrono::milliseconds)