Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFT hard stop #10737

Merged
merged 5 commits into from
Jun 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": 155,
"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": 155,
"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": 155,
"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": 155,
"Patch": 1
},
"deprecated": true,
Expand Down