Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting F# tests to be detected by Visual Studio 2013 Express for Desktop

I've defined the following F# file:

module MyFsTest

open NUnit.Framework
open FsUnit

[<Test>]
let ``1 + 1 = 2``() = Assert.AreEqual(2, 1+1)

yet when I try to run them either through "Test Explorer" or "Right Click + Run Tests" a build is done yet no tests are detected/run:

------ Discover test started ------
========== Discover test finished: 0 found (0:00:00,0320018) ==========

After googling a bit I've found my approach seems to resemble the steps taken @ http://davesquared.net/2013/03/hello-world-testing-in-fsharp.html, so I was wondering if there's something else I might be missing?

like image 200
devoured elysium Avatar asked Feb 01 '14 22:02

devoured elysium


People also ask

What does getting an F mean?

the grade f means failure. for example if you have an f on your report card or progress report that means you are failing in that class.

What happens if I get an F?

Failed classes count toward your GPA, though some colleges do not count pass/fail classes in your GPA calculation. If you get an F, you still have to pay for the class without receiving any credit toward your degree. What's more, failed classes don't count toward graduation requirements either.

Are F's good?

F - this is a failing grade.

Is F better than D?

Numerical and letter grades The typical letter grades awarded for participation in a course are (from highest to lowest) A, B, C, D and F. Variations on the traditional five-grade system allow for awarding A+, A, A−, B+, B, B−, C+, C, C−, D+, D, D−, and F.


1 Answers

To use NUnit tests with the built-in Visual Studio test runner, you'd need to install the NUnit test adapter. This is available for Visual Studio 2013, but I believe it is not possible to install it as an extension to the Express edition.

However, the Express edition includes support for the Microsoft Visual Studio testing framework, which is supported by the built-in test runner. The usage should be pretty similar to NUnit - you'll just need different namespaces.

like image 168
Tomas Petricek Avatar answered Sep 28 '22 08:09

Tomas Petricek