-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
40 lines (34 loc) · 1.28 KB
/
Copy pathProgram.cs
File metadata and controls
40 lines (34 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
namespace UnityTestRunnerResultsReporter
{
class Program
{
static void Main(string[] args)
{
var processor = new UnityTestRunnerResultsProcessor();
var optionsParser = new OptionsParser();
Console.WriteLine("Reading parameters and validating test results....");
optionsParser.ParseOptions(processor, args);
var logParser = new UnityLogParser();
var xmlParser = new TestResultXmlParser();
Console.WriteLine("Trying to parse Unity version and test metadata...");
logParser.TryParseProductVersion(processor);
logParser.TryParseTestArguments(processor);
Console.WriteLine("Trying to parse test results...");
xmlParser.ParseTestResults(processor);
Console.WriteLine("Generating test result JSON file...");
processor.GenerateTestResultJson();
processor.GenerateConsoleOutput();
Console.WriteLine("Generating HTML test report...");
processor.GenerateHtmlReport();
if (processor.GetOverallTestResults())
{
Environment.Exit(0);
}
else
{
Environment.Exit(1);
}
}
}
}