예제 #1
0
        public void CommandComplete(int exitCode)
        {
            var resultsPath = Path.GetFullPath("TestResult.xml");

            Output.WriteLine(TeamCityFormatter.FormatTeamCityMessageWithFields("importData", "type", "nunit", "path", resultsPath));
            Log.CommandComplete(exitCode);
        }
예제 #2
0
 public void OutputDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (e.Data != null)
     {
         if (warningRegex.IsMatch(e.Data))
         {
             StdOut.WriteLine(TeamCityFormatter.FormatTeamCityMessageWithFields(
                                  "message",
                                  "text", e.Data,
                                  "status", "WARNING"));
         }
         else if (errorRegex.IsMatch(e.Data))
         {
             StdOut.WriteLine(TeamCityFormatter.FormatTeamCityMessageWithFields(
                                  "message",
                                  "text", e.Data,
                                  "status", "ERROR"));
         }
     }
 }
예제 #3
0
 private string FormatErrorMessage(object message)
 {
     return(TeamCityFormatter.FormatTeamCityMessageWithFields("message", "text", message.ToString(), "status", "ERROR"));
 }