Exemple #1
0
 public TeamCityLog(TextWriter output, LogOptions logOptions, ILogMessageFormatter logMessageFormatter)
     : base(output, output, logOptions, logMessageFormatter)
 {
     Output = output;
     LogOptions = logOptions;
     TeamCityFormatter = new TeamCityFormatter();
 }
 public TeamCityNUnitLogger(string args, TextWriter output, ICommandLog log)
 {
     Output = output;
     Log    = log;
     CommandArgumentsForLogging = args;
     TeamCityFormatter          = new TeamCityFormatter();
 }
Exemple #3
0
        public TeamCity5NUnitLogger(string args, TextWriter output, ICommandLog log)
            : base(args, output, log)
        {
            Output            = output;
            TeamCityFormatter = new TeamCityFormatter();

            SummaryRegex = new Regex(@"Tests run: (\d.*), Errors: (\d.*), Failures: (\d.*), Inconclusive: (\d.*), Time: (\d.*) seconds");
        }
        public TeamCity5NUnitLogger(string args, TextWriter output, ICommandLog log)
            : base(args, output, log)
        {
            Output = output;
            TeamCityFormatter = new TeamCityFormatter();

            SummaryRegex = new Regex(@"Tests run: (\d.*), Errors: (\d.*), Failures: (\d.*), Inconclusive: (\d.*), Time: (\d.*) seconds");
        }
        public TeamCityMsBuildLogger(string args, TextWriter stdout, ICommandLog log)
        {
            this.stdout = stdout;
            Log = log;

            Type msBuildLoggerType = typeof(MSBuildLogger);

            string loggerType = String.Format(@"""/l:{0},{1}""", msBuildLoggerType.FullName, msBuildLoggerType.Assembly.Location);

            CommandArgumentsForLogging = args + " " + loggerType + " /nologo /noconsolelogger";
            warningRegex = CreateRegexFor("warning");
            errorRegex = CreateRegexFor("error");

            TeamCityFormatter = new TeamCityFormatter();
        }
Exemple #6
0
        public TeamCityMsBuildLogger(string args, TextWriter stdout, ICommandLog log)
        {
            this.stdout = stdout;
            Log         = log;

            Type msBuildLoggerType = typeof(MSBuildLogger);

            string loggerType = String.Format(@"""/l:{0},{1}""", msBuildLoggerType.FullName, msBuildLoggerType.Assembly.Location);

            CommandArgumentsForLogging = args + " " + loggerType + " /nologo /noconsolelogger";
            warningRegex = CreateRegexFor("warning");
            errorRegex   = CreateRegexFor("error");

            TeamCityFormatter = new TeamCityFormatter();
        }
Exemple #7
0
 public TeamCityTaskLog(TextWriter output) {
     this.output = output;
     TeamCityFormatter = new TeamCityFormatter();
 }
Exemple #8
0
 public TeamCityLog(TextWriter output, LogOptions logOptions, ILogMessageFormatter logMessageFormatter) : base(output, output, logOptions, logMessageFormatter)
 {
     Output            = output;
     LogOptions        = logOptions;
     TeamCityFormatter = new TeamCityFormatter();
 }
 public TeamCityNUnitLogger(string args, TextWriter output, ICommandLog log) {
     Output = output;
     Log = log;
     CommandArgumentsForLogging = args;
     TeamCityFormatter = new TeamCityFormatter();
 }
Exemple #10
0
 public TeamCityTaskLog(TextWriter output)
 {
     this.output       = output;
     TeamCityFormatter = new TeamCityFormatter();
 }