Preventing from running dotnet test if test runner is not specified
This commit is contained in:
parent
67e49d3636
commit
8eb3946caf
|
|
@ -193,7 +193,7 @@ default NUGET_FEED = 'https://api.nuget.org/v3/index.json'
|
||||||
if (dnxCore50TFM != null)
|
if (dnxCore50TFM != null)
|
||||||
{
|
{
|
||||||
var hasTestCommand = project.Keys.Contains("commands") && project.ValueAsJsonObject("commands").Keys.Contains("test");
|
var hasTestCommand = project.Keys.Contains("commands") && project.ValueAsJsonObject("commands").Keys.Contains("test");
|
||||||
if (projectText.Contains("dotnet-test-xunit"))
|
if (projectText.Contains("dotnet-test-xunit") && project.Keys.Contains("testRunner"))
|
||||||
{
|
{
|
||||||
DotnetTest(projectFile, Configuration);
|
DotnetTest(projectFile, Configuration);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue