Skip to content

Commit

Permalink
Merge pull request #10750 from microsoft/users/kavipriya/rftendgame153
Browse files Browse the repository at this point in the history
RFT hard stop
  • Loading branch information
kaadhina authored Jun 26, 2019
2 parents 4b00a51 + ced1865 commit 53049fa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 16 deletions.
7 changes: 1 addition & 6 deletions Tasks/DeployVisualStudioTestAgentV2/DeployTestAgent.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
[CmdletBinding()]
param()

# Error out unless there is a workaround
$supportrft = Get-VstsTaskVariable -Name 'RFTSupport' -AsBool
if(-not $supportrft)
{
throw "This task and its companion task (Run Functional Tests) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information."
}
throw "This task and its companion task (Run Functional Tests) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information."

Trace-VstsEnteringInvocation $MyInvocation
Write-Warning "This task and it’s companion task (Run Functional Tests) are now deprecated and will stop working on 10-March-2019. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the ‘Visual Studio Test Platform’ task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information."
Expand Down
2 changes: 1 addition & 1 deletion Tasks/DeployVisualStudioTestAgentV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 151,
"Minor": 153,
"Patch": 1
},
"deprecated": true,
Expand Down
2 changes: 1 addition & 1 deletion Tasks/DeployVisualStudioTestAgentV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 151,
"Minor": 153,
"Patch": 1
},
"deprecated": true,
Expand Down
7 changes: 1 addition & 6 deletions Tasks/RunDistributedTestsV1/RunDistributedTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,7 @@ $checkTestAgentCompatScriptLocationMemberExists = CmdletHasMember "CheckTestAge
$checkCustomSlicingEnabledMemberExists = CmdletHasMember "CustomSlicingEnabled"
$taskContextMemberExists = CmdletHasMember "TaskContext"

# Error out unless there is a workaround
$supportrft = Get-TaskVariable -Context $distributedTaskContext -Name "RFTSupport"
if ($supportrft -notlike 'true')
{
throw "This task and its companion task (Visual Studio Test Agent Deployment) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information."
}
throw "This task and its companion task (Visual Studio Test Agent Deployment) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information."

if($overrideRunParams -and $runSettingsFile -and (Test-Path $runSettingsFile))
{
Expand Down
2 changes: 1 addition & 1 deletion Tasks/RunDistributedTestsV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 151,
"Minor": 153,
"Patch": 1
},
"deprecated": true,
Expand Down
2 changes: 1 addition & 1 deletion Tasks/RunDistributedTestsV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 151,
"Minor": 153,
"Patch": 1
},
"deprecated": true,
Expand Down

0 comments on commit 53049fa

Please sign in to comment.