Skip to content
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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
<Content Include="expected-help-output.bsl">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
<Compile Include="..\fsharp\TestHelpers.fs" Link="TestHelpers.fs" />
<Compile Include="LibraryTestFx.fs" />
<Compile Include="SurfaceArea.netstandard.fs" />
<Compile Include="SurfaceArea.fs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'"/>
<Compile Include="..\service\FsUnit.fs">
<Link>FsUnit.fs</Link>
</Compile>
Expand Down
77 changes: 0 additions & 77 deletions tests/FSharp.Compiler.Service.Tests/LibraryTestFx.fs

This file was deleted.

38 changes: 38 additions & 0 deletions tests/FSharp.Compiler.Service.Tests/SurfaceArea.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.

namespace Tests.Service.SurfaceArea

open System.IO
open System.Reflection
open NUnit.Framework

type SurfaceAreaTest() =
// This relies on a set of baselines to update the baseline set an environment variable before running the tests, then on failure the baselines will be updated
// Handled by SurfaceArea.verify
//
// CMD:
// set TEST_UPDATE_BSL=1
// PowerShell:
// $env:TEST_UPDATE_BSL=1
// Linux/macOS:
// export TEST_UPDATE_BSL=1

[<Test>]
member _.VerifySurfaceAreaFSharpCompilerService() =

let platform = "netstandard20"

let flavor =
#if DEBUG
"debug"
#else
"release"
#endif
let assembly =
let path = Path.Combine(Path.GetDirectoryName(typeof<int list>.Assembly.Location), "FSharp.Compiler.Service.dll")
Assembly.LoadFrom path

let baseline = Path.Combine(__SOURCE_DIRECTORY__, $"FSharp.Compiler.Service.SurfaceArea.{platform}.{flavor}.bsl")
let outFileName = $"FSharp.Compiler.Service.SurfaceArea.{platform}.{flavor}.out"
FSharp.Test.SurfaceArea.verify assembly baseline outFileName

13 changes: 0 additions & 13 deletions tests/FSharp.Compiler.Service.Tests/SurfaceArea.netstandard.fs

This file was deleted.

Loading