devlooped / xunit.assemblyfixture

Provides per-assembly fixture state support for xunit
MIT License
26 stars 12 forks source link

Doesn't seem to work on when targeting .net framework #35

Open Awsmolak opened 1 year ago

Awsmolak commented 1 year ago

IAssemblyFixture is not working if my test project targets .net framework. (using 4.8 in this case) The exception raised in test runner: "The following constructor parameters did not have matching fixture data: MyAssemblyFixture fixture"

I can provide a minimal reproducible example if necessary, but this can be easily repro'd in the current commit by changing this line in AssemblyFixture.Tests.csproj to: <TargetFramework>net48</TargetFramework>

Rebuild the project and none of the tests will run.

Back this issue Back this issue

dschuermans commented 1 year ago

+1 Running into the same issue

@Awsmolak i've just tried Xunit.Extensions.Ordering (because that also has AssemblyFixture functionality) and that seems to be working.

Make sure to you don't forget to do this