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

Try to add Xunit.v3 #706

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wallymathieu
Copy link

No description provided.

@wallymathieu
Copy link
Author

I seem to be getting NuGet/Home#12543

/Users/mathieu/src/fs/FsCheck/src/FsCheck.Xunit/FsCheck.Xunit.fsproj : error NU1009: The packages Microsoft.NETFramework.ReferenceAssemblies are implicitly referenced. You do not typically need to reference them from your project or in your central package versions management file. For more information, see https://aka.ms/sdkimplicitrefs [/Users/mathieu/src/fs/FsCheck/FsCheck.sln]

Though I don't really get how that is.

@arialdomartini
Copy link
Contributor

I am afraid that just targeting the new xunit.v3.extensibility.core package won't be enough: xUnit v3 introduced some breaking changes, which require changes to the code of FsCheck.Xunit.PropertyAttribute.

Notably, the XunitTestCase signature in v3 in not compatible with the one in v2: for example, in v2 the first parameter of XunitTestCase is a messsage sink, while in v3 it is a IXunitTestMethod.

@kurtschelfthout
Copy link
Member

Thanks for looking at this.

Note FsCheck doesn't use paket anymore.

For the framework thing, I'd just drop the net462 target for the time being. That was only added to help xunit determine .NET FW tests. But honestly, for FsCheck.Xunit3 I'd be ok targetting some recent version of .NET (8?) and dropping framework support.

@wallymathieu
Copy link
Author

Thanks! I'm kind of dry coding since I have trouble getting around NU1009. I'll see if it works better on Windows so that I can see about updating this PR.

@wallymathieu
Copy link
Author

I had to comment out

    <PackageVersion Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" />

in order to get it to build

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

Successfully merging this pull request may close these issues.

3 participants