Running fsUnit tests from visual studio

So, I wrote my first fsUnit test in Visual Studio. This is just an extension of the NUnit framework, and I use NUnit to execute TDD in C #. When writing tests in C #, I can run tests from visual studio. But I can not run F # tests from VS. Why is this? Are there any other tools that I can use to run tests (externally)?

+4
source share
1 answer

fsUnit is just a library that allows you to write the body of a unit test using combinators, but the rest of the unit test can be written as a regular class (with the usual attributes). If you write something like the following, then the NUnit test runner should see it (for example, in the Tests.fs file in some project):

 open FsUnit open NUnit.Framework [<TestFixture>] type AccountTest() = [<Test>] member x.SimpleTest() = 1 |> should equal 1 
+3
source

All Articles