从TestDriven.NET报告“看起来好像您正在尝试执行xUnit.net单元测试.",运行F#xUnit Fact. [英] Running F# xUnit Fact from TestDriven.NET reporting "It looks like you're trying to execute an xUnit.net unit test."
本文介绍了从TestDriven.NET报告“看起来好像您正在尝试执行xUnit.net单元测试.",运行F#xUnit Fact.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用TestDriven.NET运行xUnit测试(从F#模块,如果有任何不同),但是无论如何我都会遇到此错误:
I am trying to run xUnit tests (from an F# module, if it makes any difference) using TestDriven.NET, but whatever I do I get this error:
It looks like you're trying to execute an xUnit.net unit test.
For xUnit 1.5 or above (recommended):
Please ensure that the directory containing your 'xunit.dll' reference also contains xUnit's
test runner files ('xunit.dll.tdnet', 'xunit.runner.tdnet.dll' etc.)
For earlier versions:
You need to install support for TestDriven.Net using xUnit's 'xunit.installer.exe' application.
You can find xUnit.net downloads and support here:
http://www.codeplex.com/xunit
我尝试按照建议进行操作,即我复制了文件
I tried following the suggestions, i.e. I copied the files
xunit.dll.tdnet
xunit.extensions.dll
xunit.gui.clr4.exe
xunit.runner.tdnet.dll
xunit.runner.utility.dll
xunit.runner.utility.xml
xunit.xml
到带有xunit.dll的文件夹中,然后我运行了xunit.installer.exe
.我如何使它工作?
to the folder with xunit.dll and I ran xunit.installer.exe
. How can I get it to work?
推荐答案
我刚刚发现自己忘记了在F#中使测试成为函数(因此它只是一个值).该错误消息不会造成更多误导!
I just figured out that I forgot to make the test a function in F# (so it was just a value). The error message can't be more misleading though!
这篇关于从TestDriven.NET报告“看起来好像您正在尝试执行xUnit.net单元测试.",运行F#xUnit Fact.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文