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

Re-enable Akka.Streams.Tests.TCK NUnit tests #4548

Merged
merged 9 commits into from Aug 21, 2020
2 changes: 2 additions & 0 deletions build.fsx
Expand Up @@ -232,6 +232,7 @@ Target "RunTests" (fun _ ->
let projects =
let rawProjects = match (isWindows) with
| true -> !! "./src/**/*.Tests.*sproj"
++ "./src/**/Akka.Streams.Tests.TCK.csproj"
| _ -> !! "./src/**/*.Tests.*sproj" // if you need to filter specs for Linux vs. Windows, do it here
rawProjects |> Seq.choose filterProjects

Expand All @@ -257,6 +258,7 @@ Target "RunTestsNetCore" (fun _ ->
let projects =
let rawProjects = match (isWindows) with
| true -> !! "./src/**/*.Tests.*sproj"
++ "./src/**/Akka.Streams.Tests.TCK.csproj"
| _ -> !! "./src/**/*.Tests.*sproj" // if you need to filter specs for Linux vs. Windows, do it here
rawProjects |> Seq.choose filterProjects

Expand Down
11 changes: 8 additions & 3 deletions src/core/Akka.Streams.Tests.TCK/Akka.Streams.Tests.TCK.csproj
Expand Up @@ -2,8 +2,9 @@
<Import Project="..\..\common.props" />
<Import Project="..\..\xunitSettings.props" />
<PropertyGroup>
<AssemblyName>Akka.Streams.Tests</AssemblyName>
<TargetFrameworks>$(NetFrameworkTestVersion)</TargetFrameworks>
<AssemblyName>Akka.Streams.Tests.TCK</AssemblyName>
<!-- Reactive.Streams.TCK isn't compatible with .NET Core -->
<TargetFrameworks>$(NetFrameworkTestVersion);$(NetCoreTestVersion)</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand All @@ -18,8 +19,12 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(TestSdkVersion)" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="Reactive.Streams.TCK" Version="1.0.2" />
<PackageReference Include="NUnit" Version="3.12.0" />
<!-- !!!WARNING!!!
NUNIT VERSION HAVE TO MATCH WITH THE VERSION USED BY REACTIVE TCK.
!!!WARNING!!! -->
<PackageReference Include="NUnit" Version="3.7.1" Condition="'$(TargetFramework)' == '$(NetCoreTestVersion)'"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to add this back in, because .NET Core could not use the NUnit package referenced inside the TCK package

</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkTestVersion)' ">
Expand Down