-
Notifications
You must be signed in to change notification settings - Fork 319
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
1) Added CUIT package in vstest xcopy package #1394
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
52fe7eb
1) Added CUIT package in vstest xcopy package
e2ebd64
Merge branch 'master' into cuitxcopy
acesiddhu f00b69b
PR comments
c0dcff3
Merge branch 'cuitxcopy' of https://github.com/acesiddhu/vstest into …
e214bcc
acceptance test
5649617
Merge branch 'master' into cuitxcopy
acesiddhu 797773f
PR comment
372f867
build fix
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.TestPlatform.AcceptanceTests | ||
{ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Text; | ||
|
||
[TestClass] | ||
public class CUITTest : AcceptanceTestBase | ||
{ | ||
[CustomDataTestMethod] | ||
[NETFullTargetFramework] | ||
public void CUITRunAllTests(RunnerInfo runnerInfo) | ||
{ | ||
SetTestEnvironment(this.testEnvironment, runnerInfo); | ||
CUITRunAll(runnerInfo.RunnerFramework); | ||
} | ||
|
||
private void CUITRunAll(string runnerFramework) | ||
{ | ||
if (runnerFramework.StartsWith("netcoreapp")) | ||
{ | ||
Assert.Inconclusive("CUIT tests are not supported with .Netcore runner."); | ||
return; | ||
} | ||
|
||
var assemblyAbsolutePath = testEnvironment.GetTestAsset("CUITTestProject.dll", "net451"); | ||
var arguments = PrepareArguments( | ||
assemblyAbsolutePath, | ||
string.Empty, | ||
string.Empty); | ||
|
||
this.InvokeVsTest(arguments); | ||
this.ValidateSummaryStatus(1, 0, 0); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<!-- Package dependency versions --> | ||
<PropertyGroup> | ||
<TestPlatformRoot Condition="$(TestPlatformRoot) == ''">..\..\..\</TestPlatformRoot> | ||
<TestProject>true</TestProject> | ||
</PropertyGroup> | ||
<!-- Imports Common TestAssets props. --> | ||
<Import Project="..\..\..\scripts\build\TestAssets.props" /> | ||
|
||
<PropertyGroup> | ||
<AssemblyName>CUITTestProject</AssemblyName> | ||
<TargetFrameworks>net451</TargetFrameworks> | ||
<OutputType Condition="$(NetCoreAppTargetFrameWork) == 'true' ">Exe</OutputType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" /> | ||
<Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework" /> | ||
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common" /> | ||
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension" /> | ||
<Reference Include="Microsoft.VisualStudio.TestTools.UITesting" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.VisualStudio.cuit"> | ||
<Version>15.6.0-preview-1329213</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.VisualStudio.QualityTools"> | ||
<Version>15.5.0-preview-1046721</Version> | ||
</PackageReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> | ||
</ItemGroup> | ||
<Import Project="$(TestPlatformRoot)scripts\build\TestPlatform.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace BlameUnitTestProject | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. namespace. |
||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.RegularExpressions; | ||
using System.Windows.Input; | ||
using System.Drawing; | ||
using Microsoft.VisualStudio.TestTools.UITesting; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Microsoft.VisualStudio.TestTools.UITest.Extension; | ||
using Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard; | ||
using System.Threading; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Threading required? |
||
|
||
[CodedUITest] | ||
public class CodedUITestProject | ||
{ | ||
[TestMethod] | ||
public void CodedUITestMethod1() | ||
{ | ||
UITestControl.Desktop.DrawHighlight(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
TestPlatformExternalsVersion
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not importing that props because that guy includes mstest v2 as well. my test needs mstest v1 reference