Revert "Revert "Add performance tests"" (#2820)

This commit is contained in:
Pavel Krymets 2016-05-12 10:33:32 -07:00 committed by Piotr Puszkiewicz
parent 418d827d52
commit b8dff69cc1
33 changed files with 728 additions and 3 deletions

View file

@ -29,6 +29,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
private readonly bool _noIncremental;
private readonly bool _noDependencies;
private readonly string _runtime;
private readonly bool _verbose;
private string OutputOption
{
@ -199,6 +200,14 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
}
}
private string Verbose
{
get
{
return _verbose ? "--verbose" : "";
}
}
public BuildCommand(
string projectPath,
string output="",
@ -218,6 +227,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
bool buildProfile=true,
bool noIncremental=false,
bool noDependencies=false,
bool verbose=true,
bool skipLoadProject=false)
: base("dotnet")
{
@ -245,17 +255,18 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
_buildProfile = buildProfile;
_noIncremental = noIncremental;
_noDependencies = noDependencies;
_verbose = verbose;
}
public override CommandResult Execute(string args = "")
{
args = $"--verbose build {BuildArgs()} {args}";
args = $"{Verbose} build {BuildArgs()} {args}";
return base.Execute(args);
}
public override CommandResult ExecuteWithCapturedOutput(string args = "")
{
args = $"--verbose build {BuildArgs()} {args}";
args = $"{Verbose} build {BuildArgs()} {args}";
return base.ExecuteWithCapturedOutput(args);
}