Remove framework from dotnet-test
This commit is contained in:
parent
a7642bd20d
commit
4bf99de4e4
|
|
@ -9,9 +9,6 @@ dotnet-test
|
|||
|
||||
projectFile=''
|
||||
Required. Path to the test project.json to execute
|
||||
|
||||
framework=''
|
||||
Required. The TFM to run tests for
|
||||
|
||||
configuration=''
|
||||
Optional. The configuration to build in. Defaults to 'Debug'.
|
||||
|
|
@ -21,7 +18,7 @@ default configuration = 'Debug'
|
|||
|
||||
@{
|
||||
var projectFolder = Path.GetDirectoryName(projectFile);
|
||||
var testArgs = "--configuration " + configuration + " --framework " + framework;
|
||||
var testArgs = "--configuration " + configuration;
|
||||
Dotnet("test " + testArgs, projectFolder);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ default NUGET_FEED = 'https://api.nuget.org/v3/index.json'
|
|||
var hasTestCommand = project.Keys.Contains("commands") && project.ValueAsJsonObject("commands").Keys.Contains("test");
|
||||
if (projectText.Contains("dotnet-test-xunit"))
|
||||
{
|
||||
DotnetTest(projectFile, dnxCore50TFM, Configuration);
|
||||
DotnetTest(projectFile, Configuration);
|
||||
}
|
||||
else if (hasTestCommand)
|
||||
{
|
||||
|
|
@ -391,7 +391,7 @@ macro name="DotnetPack" projectFile='string' dotnetPackOutputDir='string' config
|
|||
macro name="DotnetPublish" projectFile='string' outputFolder='string' framework='string' configuration='string'
|
||||
dotnet-publish
|
||||
|
||||
macro name="DotnetTest" projectFile='string' framework='string' configuration='string'
|
||||
macro name="DotnetTest" projectFile='string' configuration='string'
|
||||
dotnet-test
|
||||
|
||||
macro name="XunitTest" projectFile='string' framework='string' configuration='string'
|
||||
|
|
|
|||
Loading…
Reference in New Issue