You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm. The first thing I'd do is try to see if upstream steps are working.
In particular you could run the test project with dotnet run to see if Expecto alone is discovering tests. Then you can run with dotnet test to see if the transition from Execto to YoloDev/dotnet test is working correctly. If all of that is ok, then it's probably an issue in Rider that Jetbrains would need to fix.
fwiw, I just tried this directly from an Expecto command line test app, and got
Unhandled exception. System.TypeInitializationException: The type initializer for 'edt' threw an exception.
---> System.TypeInitializationException: The type initializer for '<StartupCode$edt>.$edt' threw an exception.
---> System.Exception: The type System.DateOnly is not handled automatically by FsCheck. Consider using another type or writing and registering a generator for it.
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1448.Invoke(String message)
at [email protected](Type t)
at FsCheck.Common.f@1[a,b](IDictionary`2 memo, FSharpFunc`2 f, a n, Unit _arg1)
at FsCheck.Common.memoizeWith[a,b](IDictionary`2 memo, FSharpFunc`2 f, a n)
at [email protected](a n)
at [email protected]_Generator()
at edt.staticInitialization@() in S:\DevTest\edt\Main.fs:line 8
at <StartupCode$edt>.$edt..cctor()
--- End of inner exception stack trace ---
at edt..cctor() in S:\DevTest\edt\Main.fs:line 0
--- End of inner exception stack trace ---
at edt.main(String[] argv) in S:\DevTest\edt\Main.fs:line 19
Which sounds more like an FsCheck limitation than an Expecto problem.
I stumbled upon a weird behavior with Expecto and FsCheck
I'm not sure if it depends on one or the other, though.
TL;DR changing
to
prevents Riders from discovering the Expecto tests.
I've got this dummy module:
Notice how that
randomDate
is unused.Tests are discovered with
YoloDev.Expecto.TestSdk
and by checkingEnable VSTest adapters support
, as per #326.When
randomDate
generates aDateTime
the test explorer shows:When it is set to generate
DateOnly
instead ofDateTime
, all the Expecto tests, from all the modules, just stop being discovered:The few tests still being discovered are the xUnit tests only.
Any idea how I could debug this weird behavior?
The text was updated successfully, but these errors were encountered: