I am new to unit testing, but I want to experiment with xunit in F# (in a fresh VS2015 install). I created a new library, ran:
Install-Package fsunit.xunit
... and I can create a test:
[<Fact>]
let test () = "Yay"
, but when I right-click and do "Run Tests", it doesn't find my test.
When I search the extensions, there's a "xUnit.net runner for Visual Studio" in the online search results, but it says "NO LONGER NEEDED. Please un-install this extension." So I don't want to install that.
What am I missing, to enable the tests to be discovered and run?
I needed to install both the FSunit package and this test runner:
Install-Package fsunit.xunit -prerelease
Install-Package xunit.runner.visualstudio
(The current released version does not support the latest version of xunit, hence -prerelease.)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.