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); }