aquality-selenium-dotnet icon indicating copy to clipboard operation
aquality-selenium-dotnet copied to clipboard

Test discovery issue when targeting .NET 8 in Aquality.Selenium (v4.23.0) projects

Open aarif313 opened this issue 6 months ago • 0 comments

I have a Selenium C# solution based on Aquality.Selenium V4.23.0 and NUnit, containing a total of six projects, listed below:

Microsoft.Dynamics365.UIAutomation.Api — targeting .NET Framework 4.7.2 Microsoft.Dynamics365.UIAutomation.Api.UCI — targeting .NET Framework 4.7.2 Microsoft.Dynamics365.UIAutomation.Browser — targeting .NET Framework 4.7.2 xxxxxx.Autotests.Framework — targeting .NET Framework 4.7.2 xxxxxx.Autotests.Mobile — targeting net6.0-windows xxxxxx.Autotests.Web — targeting net6.0-windows

I’m in the process of upgrading xxxxxx.Autotests.Web and xxxxxx.Autotests.Mobile to .NET 8, and have successfully updated all their associated NuGet packages to the latest compatible versions mentioned below. <PackageReference Include="NUnit" Version="4.3.2" />

<PackageReference Include="NUnit3TestAdapter" Version="5.0.0"> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" /> <PackageReference Include="Aquality.Selenium" Version="4.23.0" />

However, after modifying the respective .csproj files to target .NET 8, I'm encountering an issue where no test cases are being discovered, and the test run is aborted immediately. Below is the output observed:

========== Test discovery finished: 0 Tests found in 3 sec ========== Building Test Projects ========== Starting test run ========== ========== Test run aborted: 0 Tests (0 Passed, 0 Failed, 0 Skipped) run in < 1 ms ==========

I would appreciate guidance on resolving this issue and ensuring proper test discovery and execution after migrating to .NET 8.

aarif313 avatar May 28 '25 12:05 aarif313