【发布时间】:2014-02-25 14:31:49
【问题描述】:
我定义了以下 F# 文件:
module MyFsTest
open NUnit.Framework
open FsUnit
[<Test>]
let ``1 + 1 = 2``() = Assert.AreEqual(2, 1+1)
然而,当我尝试通过“测试资源管理器”或“右键单击 + 运行测试”运行它们时,构建完成但没有检测到/运行测试:
------ Discover test started ------
========== Discover test finished: 0 found (0:00:00,0320018) ==========
在谷歌上搜索了一下后,我发现我的方法似乎类似于 @http://davesquared.net/2013/03/hello-world-testing-in-fsharp.html 所采取的步骤,所以我想知道是否还有其他我可能遗漏的东西?
【问题讨论】:
-
您能否排除/排除您是否有用于 VS(和/或其版本)的 NUnit 运行器插件? C# 测试是否被发现/运行(我怀疑 ti,因为似乎没有任何明显错误)?
-
@RubenBartelink:就是这样。我没有安装 NUnit 插件。但是查看 VS Gallery,似乎还没有支持 VS2013 的版本:(.
-
似乎没有办法让它与快速版一起使用:stackoverflow.com/questions/20907842/…
标签: unit-testing f# nunit visual-studio-2013