-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add FSharp E2E test * More representative method name * Improve test * Fix string expand * Fix passed tests detection * Fix typo in tests * Comment grammar * Review feedback Co-authored-by: nohwnd <me@jakubjares.com>
- Loading branch information
Showing
9 changed files
with
113 additions
and
11 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace MSTestAdapter.Smoke.E2ETests | ||
{ | ||
using Microsoft.MSTestV2.CLIAutomation; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
[TestClass] | ||
public class TestProjectFSharpTests : CLITestBase | ||
{ | ||
private const string TestAssembly = "FSharpTestProject.dll"; | ||
|
||
[TestMethod] | ||
public void ExecuteCustomTestExtensibilityTests() | ||
{ | ||
this.InvokeVsTestForExecution(new string[] { TestAssembly }); | ||
this.ValidateFailedTestsCount(0); | ||
this.ValidatePassedTestsCount(1); | ||
this.ValidatePassedTestsContain("Test method passing with a . in it"); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
test/E2ETests/TestAssets/FSharpTestProject/FSharpTestProject.fsproj
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,24 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TestFxRoot Condition="$(TestFxRoot) == ''">..\..\..\..\</TestFxRoot> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net452</TargetFramework> | ||
<IsPackable>false</IsPackable> | ||
<GenerateProgramFile>false</GenerateProgramFile> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<OutputPath>$(TestFxRoot)artifacts\TestAssets\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\..\src\TestFramework\Extension.Desktop\Extension.Desktop.csproj" /> | ||
<ProjectReference Include="..\..\..\..\src\TestFramework\MSTest.Core\MSTest.Core.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="Tests.fs" /> | ||
</ItemGroup> | ||
|
||
</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,11 @@ | ||
namespace FSharpTestProject | ||
|
||
open System | ||
open Microsoft.VisualStudio.TestTools.UnitTesting | ||
|
||
[<TestClass>] | ||
type UnitTest1 () = | ||
|
||
[<TestMethod>] | ||
member this.``Test method passing with a . in it`` () = | ||
Assert.IsTrue(true); |
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