diff --git a/Reporting/Common/Common.xslt b/Reporting/Common/Common.xslt
index 94aebda2f..cd7323fde 100644
--- a/Reporting/Common/Common.xslt
+++ b/Reporting/Common/Common.xslt
@@ -201,17 +201,18 @@
]";
- [
+ [
]
diff --git a/Tools/Program.cs b/Tools/Program.cs
index f7f98fe0d..eab82b21b 100644
--- a/Tools/Program.cs
+++ b/Tools/Program.cs
@@ -8,9 +8,9 @@
namespace TechTalk.SpecFlow.Tools
{
- class Program
+ internal class Program
{
- static void Main(string[] args)
+ private static void Main(string[] args)
{
Consolery.Run(typeof(Program), args);
return;
@@ -18,14 +18,12 @@ static void Main(string[] args)
[Action("Generate tests from all feature files in a project")]
public static void GenerateAll(
- [Required] string projectFile,
+ [Required(Description = "Visual Studio Project File containing features")] string projectFile,
[Optional(false, "force", "f")] bool forceGeneration,
- [Optional(false, "verbose", "v")] bool verboseOutput
- )
+ [Optional(false, "verbose", "v")] bool verboseOutput)
{
SpecFlowProject specFlowProject = MsBuildProjectReader.LoadSpecFlowProjectFromMsBuild(projectFile);
-
- BatchGenerator batchGenerator = new BatchGenerator(Console.Out, verboseOutput);
+ var batchGenerator = new BatchGenerator(Console.Out, verboseOutput);
batchGenerator.ProcessProject(specFlowProject, forceGeneration);
}
@@ -33,28 +31,24 @@ public static void GenerateAll(
[Action("Generates a report about usage and binding of steps")]
public static void StepDefinitionReport(
- [Required] string projectFile,
- [Optional("bin\\Debug")] string binFolder,
- [Optional("StepDefinitionReport.html", "out")] string outputFile
- )
+ [Required(Description = "Visual Studio Project File containing specs")] string projectFile,
+ [Optional("bin\\Debug", Description = @"Path for Spec dll e.g. Company.Specs.dll. Defaults to bin\Debug ")] string binFolder,
+ [Optional("StepDefinitionReport.html", "out", Description = "Generated Output File. Defaults to StepDefinitionReport.html")] string outputFile)
{
- StepDefinitionReportGenerator generator = new StepDefinitionReportGenerator(projectFile, binFolder, true);
+ var generator = new StepDefinitionReportGenerator(projectFile, binFolder, true);
generator.GenerateReport();
generator.TransformReport(Path.GetFullPath(outputFile));
}
[Action("Formats an NUnit execution report to SpecFlow style")]
- public static void NUnitExecutionReport(
- [Required] string projectFile,
- [Optional("TestResult.xml")] string xmlTestResult,
+ public static void NUnitExecutionReport([Required(Description = "Visual Studio Project File containing specs")] string projectFile,
+ [Optional("TestResult.xml", Description = "Xml Test Result file generated by NUnit. Defaults to TestResult.xml")] string xmlTestResult,
[Optional("TestResult.txt", "testOutput")] string labeledTestOutput,
- [Optional("TestResult.html", "out")] string outputFile
- )
+ [Optional("TestResult.html", "out", Description = "Generated Output File. Defaults to TestResult.html")] string outputFile)
{
- NUnitExecutionReportGenerator generator = new NUnitExecutionReportGenerator(
- projectFile,
- Path.GetFullPath(xmlTestResult),
+ var generator = new NUnitExecutionReportGenerator(projectFile, Path.GetFullPath(xmlTestResult),
Path.GetFullPath(labeledTestOutput));
+
generator.GenerateReport();
generator.TransformReport(Path.GetFullPath(outputFile));
}