static XElement Assembly(AssemblyResult assemblyResult) { return new XElement("test-suite", new XAttribute("success", assemblyResult.Failed == 0), new XAttribute("name", assemblyResult.Name), new XAttribute("time", Seconds(assemblyResult.Duration)), new XElement("results", assemblyResult.ConventionResults.Select(Convention))); }
static XElement Assembly(AssemblyResult assemblyResult) { return new XElement("test-suite", new XAttribute("type", "Assembly"), new XAttribute("success", assemblyResult.Failed == 0), new XAttribute("name", assemblyResult.Name), new XAttribute("time", Seconds(assemblyResult.Duration)), new XAttribute("executed", true), new XAttribute("result", assemblyResult.Failed > 0 ? "Failure" : "Success"), new XElement("results", assemblyResult.ConventionResults.Select(Convention))); }
static XElement Assembly(AssemblyResult assemblyResult) { var now = DateTime.UtcNow; var classResults = assemblyResult.ConventionResults.SelectMany(x => x.ClassResults); return new XElement("assembly", new XAttribute("name", assemblyResult.Name), new XAttribute("run-date", now.ToString("yyyy-MM-dd")), new XAttribute("run-time", now.ToString("HH:mm:ss")), new XAttribute("configFile", AppDomain.CurrentDomain.SetupInformation.ConfigurationFile), new XAttribute("time", Seconds(assemblyResult.Duration)), new XAttribute("total", assemblyResult.Total), new XAttribute("passed", assemblyResult.Passed), new XAttribute("failed", assemblyResult.Failed), new XAttribute("skipped", assemblyResult.Skipped), new XAttribute("environment", String.Format("{0}-bit .NET {1}", IntPtr.Size * 8, Environment.Version)), new XAttribute("test-framework", Framework.Version), classResults.Select(Class)); }
public void AssemblyCompleted(AssemblyInfo assembly, AssemblyResult result) { log.Info(result.Summary); }
public void AssemblyCompleted(AssemblyInfo assembly, AssemblyResult result) { Message("testSuiteFinished name='{0}'", SuiteName(assembly)); }
public void AssemblyCompleted(AssemblyInfo assembly, AssemblyResult result) { }
public void AssemblyCompleted(AssemblyInfo assembly, AssemblyResult result) { Console.WriteLine(result.Summary); Console.WriteLine(); }
AssemblyResult Run(Assembly assembly, IEnumerable<Convention> conventions, params Type[] candidateTypes) { var assemblyResult = new AssemblyResult(assembly.Location); var assemblyInfo = new AssemblyInfo(assembly); listener.AssemblyStarted(assemblyInfo); foreach (var convention in conventions) { var conventionResult = Run(convention, candidateTypes); assemblyResult.Add(conventionResult); } listener.AssemblyCompleted(assemblyInfo, assemblyResult); return assemblyResult; }
public void Add(AssemblyResult assemblyResult) { assemblyResults.Add(assemblyResult); }
public void Add(AssemblyResult assemblyResult) { assemblyResults.Add(assemblyResult); }
public SpecificationExecutionResult(AssemblyResult results, IEnumerable<string> executedSteps) { allResults = results; ExecutedSteps = executedSteps; }