public static void GenerateReport(string path)
        {
            var ext = Path.GetExtension(path)?.ToLower();

            switch (ext)
            {
            case ".xml":
                GhprNUnitRunHelper.CreateReportFromFile(path);
                break;

            case ".trx":
                GhprMSTestV2RunHelper.CreateReportFromFile(path, new EmptyTestDataProvider());
                break;

            default:
                throw new Exception($"Unsupported file extension: '{ext}'. " +
                                    "Only '.xml' and '.trx' extensions supported.");
            }
        }
Example #2
0
 public static void Main(string[] args)
 {
     args = new[]
     { "C:\\Users\\Evgeniy.Kosjakov\\Downloads\\AutomationTestResults_A_00_10232019_151438.xml" };
     GhprNUnitRunHelper.CreateReportFromFile(args[0]);
 }
Example #3
0
 public static void Main(string[] args)
 {
     GhprNUnitRunHelper.CreateReportFromFile(args[0]);
 }