From cb37bfd71152a8c1802226928fe053d7f0ba114f Mon Sep 17 00:00:00 2001 From: Gaspar Nagy Date: Wed, 11 Nov 2009 14:49:30 +0100 Subject: [PATCH] =?UTF-8?q?=EF=BB=BFfixes=20in=20reporting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Reporting/Program.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Reporting/Program.cs b/Reporting/Program.cs index 5c1d7f48c..dfc268769 100644 --- a/Reporting/Program.cs +++ b/Reporting/Program.cs @@ -21,26 +21,21 @@ static void Main(string[] args) public static void StepDefinitionReport( [Required] string projectFile, [Optional("bin\\Debug")] string binFolder, - [Optional("StepDefinitionReport.html", "out")] string outputFile, - [Optional(null, "features")] string[] featureFiles + [Optional("StepDefinitionReport.html", "out")] string outputFile ) { SpecFlowProject specFlowProject = MsBuildProjectReader.LoadSpecFlowProjectFromMsBuild(projectFile); - bool onlySelectedFeatures = featureFiles != null && featureFiles.Length > 0; - - List parsedFeatures = onlySelectedFeatures ? - ParserHelper.GetParsedFeatures(featureFiles) : - ParserHelper.GetParsedFeatures(specFlowProject); + List parsedFeatures = ParserHelper.GetParsedFeatures(specFlowProject); var basePath = Path.Combine(specFlowProject.ProjectFolder, binFolder); List bindings = BindingCollector.CollectBindings(specFlowProject, basePath); StepDefinitionReportGenerator generator = new StepDefinitionReportGenerator(specFlowProject, bindings, parsedFeatures, - !onlySelectedFeatures, onlySelectedFeatures); + true, false); generator.GenerateReport(); - string outputFilePath = Path.Combine(basePath, outputFile); + string outputFilePath = Path.GetFullPath(outputFile); generator.TransformReport(outputFilePath); }