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

[pull] main from nunit:main #264

Merged
merged 2 commits into from
Nov 26, 2024
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
2 changes: 1 addition & 1 deletion nuget/framework/nunit.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<group targetFramework="net462">
<dependency id="System.Threading.Tasks.Extensions" version="4.5.4" exclude="Build,Analyzers" />
<dependency id="System.ValueTuple" version="4.5.0" exclude="Build,Analyzers" />
<dependency id="System.Memory" version="4.5.5" exclude="Build,Analyzers" />
<dependency id="System.Memory" version="4.6.0" exclude="Build,Analyzers" />
</group>
<group targetFramework="net6.0" />
<group targetFramework="net8.0" />
Expand Down
6 changes: 3 additions & 3 deletions src/NUnitFramework/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<EnablePackageVersionOverride>false</EnablePackageVersionOverride>
</PropertyGroup>
<!-- Packages for used features -->
<ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<PackageVersion Include="System.Collections.Immutable" Version="6.0.0" />
<PackageVersion Include="System.Memory" Version="4.5.5" />
<PackageVersion Include="System.Memory" Version="4.6.0" />
<PackageVersion Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
<!-- General Packages -->
Expand Down Expand Up @@ -41,6 +41,6 @@
</ItemGroup>
<!-- Explictily set the version of indirect referenced nuget packages -->
<ItemGroup>
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.0" />
</ItemGroup>
</Project>
104 changes: 54 additions & 50 deletions src/NUnitFramework/tests/nunit.framework.tests.csproj
Original file line number Diff line number Diff line change
@@ -1,56 +1,60 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(NUnitRuntimeFrameworks)</TargetFrameworks>
<RootNamespace>NUnit.Framework.Tests</RootNamespace>
<PropertyGroup>
<TargetFrameworks>$(NUnitRuntimeFrameworks)</TargetFrameworks>
<RootNamespace>NUnit.Framework.Tests</RootNamespace>

<!-- Either NUnit or NUnitLite is not loading assemblies in a way that properly respects the
<!-- Either NUnit or NUnitLite is not loading assemblies in a way that properly respects the
nunit.framework.tests.deps.json file. Maybe fixed by https://github.com/nunit/nunit/issues/3353? -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<IsTestProject>true</IsTestProject>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1591,NU1029</NoWarn>
<Title>NUnit Framework Tests</Title>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="NUnit3TestAdapter" />
<PackageReference Include="NUnit.Analyzers" />
<PackageReference Include="System.Collections.Immutable" />
<PackageReference Include="System.ValueTuple" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\framework\nunit.framework.csproj" />
<ProjectReference Include="..\slow-tests\slow-nunit-tests.csproj" />
<ProjectReference Include="..\testdata\nunit.testdata.csproj" />
<ProjectReference Include="..\mock-assembly\mock-assembly.csproj" />
<ProjectReference Include="..\testdata.fsharp\nunit.testdata.fsharp.fsproj" />
<ProjectReference Include="..\nunitlite-runner\nunitlite-runner.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Reference Include="System.Web" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\Fakes.cs" Link="TestUtilities\Fakes.cs" />
<Compile Include="..\SchemaTestUtils.cs" Link="TestUtilities\SchemaTestUtils.cs" />
<Compile Include="..\TestBuilder.cs" Link="TestUtilities\TestBuilder.cs" />
<Compile Include="..\TestFile.cs" Link="TestUtilities\TestFile.cs" />
<Compile Include="..\TestSuiteExtensions.cs" Link="TestUtilities\TestSuiteExtensions.cs" />

<EmbeddedResource Include="TestImage1.jpg" />
<EmbeddedResource Include="TestImage2.jpg" />
<EmbeddedResource Include="TestText1.txt" />
<EmbeddedResource Include="TestText2.txt" />
<EmbeddedResource Include="TestListFile.txt" />
<EmbeddedResource Include="TestListFile2.txt" />
</ItemGroup>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<IsTestProject>true</IsTestProject>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1591,NU1029</NoWarn>
<Title>NUnit Framework Tests</Title>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="NUnit3TestAdapter" />
<PackageReference Include="NUnit.Analyzers" />

</ItemGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<PackageReference Include="System.Collections.Immutable" />
<PackageReference Include="System.ValueTuple" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\framework\nunit.framework.csproj" />
<ProjectReference Include="..\slow-tests\slow-nunit-tests.csproj" />
<ProjectReference Include="..\testdata\nunit.testdata.csproj" />
<ProjectReference Include="..\mock-assembly\mock-assembly.csproj" />
<ProjectReference Include="..\testdata.fsharp\nunit.testdata.fsharp.fsproj" />
<ProjectReference Include="..\nunitlite-runner\nunitlite-runner.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Reference Include="System.Web" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\Fakes.cs" Link="TestUtilities\Fakes.cs" />
<Compile Include="..\SchemaTestUtils.cs" Link="TestUtilities\SchemaTestUtils.cs" />
<Compile Include="..\TestBuilder.cs" Link="TestUtilities\TestBuilder.cs" />
<Compile Include="..\TestFile.cs" Link="TestUtilities\TestFile.cs" />
<Compile Include="..\TestSuiteExtensions.cs" Link="TestUtilities\TestSuiteExtensions.cs" />

<EmbeddedResource Include="TestImage1.jpg" />
<EmbeddedResource Include="TestImage2.jpg" />
<EmbeddedResource Include="TestText1.txt" />
<EmbeddedResource Include="TestText2.txt" />
<EmbeddedResource Include="TestListFile.txt" />
<EmbeddedResource Include="TestListFile2.txt" />
</ItemGroup>

</Project>
Loading