Migrating all test projects (#4668)

* WIP migrate tests

* WIP fixing more tests

* WIP fix test build break

* Test results files are now trx

* Get CI to pass until we get an xunit xml logger

* Added DotNetTestPJ since that was needed for one test

* Fix build break

* Forgot to add DotNetTestPJ as a build task

* Need to restore project.json for the project used in ubuntu test

* Restore PJ for ubuntu test

* Switch the Ubuntu test to csproj based
This commit is contained in:
Justin Goshi 2016-11-11 21:46:29 -10:00 committed by GitHub
parent b2a83e0072
commit 6d57ca7e14
49 changed files with 1769 additions and 95 deletions

View file

@ -12,14 +12,14 @@ namespace Microsoft.DotNet.Cli.Build
protected override string Args
{
get { return $"{GetConfiguration()} {GetNoBuild()} {GetXml()} {GetNoTrait()}"; }
get { return $"{GetProjectPath()} {GetConfiguration()} {GetLogger()} {GetNoBuild()}"; }
}
public string Configuration { get; set; }
public string Xml { get; set; }
public string Logger { get; set; }
public string NoTrait { get; set; }
public string ProjectPath { get; set; }
public bool NoBuild { get; set; }
@ -33,31 +33,31 @@ namespace Microsoft.DotNet.Cli.Build
return null;
}
private string GetNoTrait()
private string GetLogger()
{
if (!string.IsNullOrEmpty(Configuration))
if (!string.IsNullOrEmpty(Logger))
{
return $"-notrait {NoTrait}";
return $"--logger:{Logger}";
}
return null;
}
private string GetXml()
private string GetProjectPath()
{
if (!string.IsNullOrEmpty(Xml))
if (!string.IsNullOrEmpty(ProjectPath))
{
return $"-xml {Xml}";
return $"{ProjectPath}";
}
return null;
}
private string GetNoBuild()
{
if (NoBuild)
{
return "--no-build";
return "--noBuild";
}
return null;