コード例 #1
0
        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.");
            }
        }
コード例 #2
0
        public static void Main(string[] args)
        {
            var path = args[0];

            GhprMSTestV2RunHelper.CreateReportFromFile(path, new EmptyTestDataProvider());
        }