protected override string GenerateCommandLineCommands(ActivityContext context, string outputFolder) { /* C:\Program Files (x86)\JetBrains\dotCover\v2.0\Bin\dotCover.exe * cover * "C:\Builds\3\67\Sources\dotCover.config" * /AnalyzeTargetArguments=False * /TargetExecutable="C:\Builds\3\67\Sources\packages\NUnit.2.5.10.11092\tools\nunit-console.exe" * /TargetWorkingDir="C:\Builds\3\67\Binaries" * /Output=C:\Builds\3\67\Binaries\DotCoverReport\Coverage.bin * /TargetArguments="/NoLogo /include=\"-Slow\" /framework=\"net-4.0\" \"C:\Builds\3\67\Binaries\Tests.dll\"" */ var builder = new SimpleCommandLineBuilder(); builder.AppendSwitch("cover"); builder.AppendFileNamesIfNotNull(new[] { this.ConfigFile.Get(context) }, string.Empty); builder.AppendSwitch(this.AnalyzeTargetArguments.Get(context) ? "/AnalyzeTargetArguments=True" : "/AnalyzeTargetArguments=False"); builder.AppendSwitchIfNotNull("/TargetWorkingDir=", this.TargetWorkingDirectory.Get(context)); builder.AppendSwitchIfNotNull("/Output=", this.CoverageOutputFile.Get(context)); // path to NUnit builder.AppendSwitchIfNotNull("/TargetExecutable=", base.GenerateFullPathToTool(context)); // NUnit arguments builder.AppendSwitchIfNotNull("/TargetArguments=", base.GenerateCommandLineCommands(context, outputFolder)); return(builder.ToString()); }
protected virtual string GenerateCommandLineCommands(ActivityContext context, string outputFolder) { var builder = new SimpleCommandLineBuilder(); builder.AppendSwitch("/nologo"); if (this.NoShadow.Get(context)) { builder.AppendSwitch("/noshadow"); } if (this.NoThread.Get(context)) { builder.AppendSwitch("/nothread"); } if (this.Labels.Get(context)) { builder.AppendSwitch("/labels"); } builder.AppendFileNamesIfNotNull(this.Assemblies.Get(context).ToArray(), " "); builder.AppendSwitchIfNotNull("/run=", this.Run.Get(context)); builder.AppendSwitchIfNotNull("/config=", this.Configuration.Get(context)); builder.AppendSwitchIfNotNull("/include=", this.IncludeCategory.Get(context)); builder.AppendSwitchIfNotNull("/exclude=", this.ExcludeCategory.Get(context)); builder.AppendSwitchIfNotNull("/process=", this.Process.Get(context)); builder.AppendSwitchIfNotNull("/domain=", this.Domain.Get(context)); builder.AppendSwitchIfNotNull("/framework=", this.Framework.Get(context)); builder.AppendSwitchIfNotNull("/xml=", Path.Combine(outputFolder, this.OutputXmlFile.Get(context))); builder.AppendSwitchIfNotNull("/err=", this.ErrorOutputFile.Get(context)); builder.AppendSwitchIfNotNull("/out=", this.OutputFile.Get(context)); return(builder.ToString()); }
private string GenerateCommandLineCommands(ActivityContext context, string outputFolder) { SimpleCommandLineBuilder builder = new SimpleCommandLineBuilder(); builder.AppendSwitchIfNotNull("-x=", this.TestAssembly.Get(context)); builder.AppendSwitchIfNotNull("-r=", Path.Combine(outputFolder, this.OutputXmlFile.Get(context))); return(builder.ToString()); }
private string GenerateReportCommandLineCommands(ActivityContext context, ReportType reportType, string reportPath) { // C:\Program Files (x86)\JetBrains\dotCover\v2.0\Bin\dotCover.exe report /Source="E:\30\67\Binaries\DotCoverReport\Coverage.bin" /ReportType=XML /Output=E:\30\67\Binaries\DotCoverReport\Coverage.xml var builder = new SimpleCommandLineBuilder(); builder.AppendSwitch("report"); builder.AppendSwitchIfNotNull("/Source=", this.CoverageOutputFile.Get(context)); builder.AppendSwitchIfNotNull("/ReportType=", reportType.ToString().ToUpperInvariant()); builder.AppendSwitchIfNotNull("/Output=", reportPath); return(builder.ToString()); }