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

AssemblySelectLimit does not work #4715

Closed
timcassell opened this issue May 17, 2024 · 1 comment
Closed

AssemblySelectLimit does not work #4715

timcassell opened this issue May 17, 2024 · 1 comment

Comments

@timcassell
Copy link

When I try to run a group of tests with >2000 tests, it just runs the entire test suite, ignoring the AssemblySelectLimit.

UnitTestRunsettings.runsettings

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
    <!-- NUnit3 adapter, for documentation, see https://docs.nunit.org/articles/vs-test-adapter/Tips-And-Tricks.html -->
    <NUnit>
        <AssemblySelectLimit>10000</AssemblySelectLimit>
    </NUnit>

</RunSettings>

Using Visual Studio 2022 (v17.9.1), Windows 10 x64.

It worked at some point, I'm not sure when it stopped working. I tried updating and downgrading my packages, but it had no effect. My guess is a Visual Studio update caused the issue (but I haven't tested older VS versions, so can't say).

Package versions I tried (all versions I have used in the past, except NUnit v4):

<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0-alpha-net7.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NUnit" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
@timcassell
Copy link
Author

Nevermind, I got it working after manually selecting the .runsettings file in Visual Studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant