I would like to use the latest versions of NUnit, FsCheck, and F#. However, when I point to the latest versions of my packages, my unit tests do not get discovered.
However, my property-based tests are discovered (i.e. FsCheck).
My packages are the following:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FsCheck" version="2.4.0" targetFramework="net461" />
<package id="FsCheck.Xunit" version="2.4.0" targetFramework="net461" />
<package id="FSharp.Core" version="4.0.0.1" targetFramework="net461" />
<package id="FsUnit" version="2.2.0" targetFramework="net461" />
<package id="NUnit" version="3.2.1" targetFramework="net461" />
<package id="xunit.abstractions" version="2.0.0" targetFramework="net461" />
<package id="xunit.extensibility.core" version="2.1.0" targetFramework="net461" />
<package id="xunit.extensibility.execution" version="2.1.0" targetFramework="net461" />
<package id="xunit.runner.visualstudio" version="2.1.0" targetFramework="net461" />
</packages>
My app.config is the following:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="nunit.framework" publicKeyToken="96d09a1eb7f44a77" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9999.9999.9999.9999" newVersion="3.2.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Have you tried installing the NUnit3 test adapter so that Visual Studio knows about NUnit? https://www.nuget.org/packages/NUnit3TestAdapter
It could be that your FsCheck tests are found because Visual Studio already knows about XUnit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With