Linux 下的 MbUnit,在 F# 项目中使用?

发布于 2024-12-20 01:36:31 字数 608 浏览 1 评论 0原文

我尝试在 gallio 用户列表中询问此问题,但问题未能出现(Google 网上论坛表示该帖子已成功)。我想这个列表可能是由不经常阅读电子邮件的人主持的:-) 鉴于 SO 具有 Gallio 和 MbUnit 的标签,我认为值得在这里询问。

我看到了MbUnit 首页提到他们热衷于维护 Mono 兼容性。还有一个超过 1 年的关于 gallio-users 的旧帖子 说它在 Linux 下不起作用

如果我删除 Parallelizable 属性,我想测试的项目在 Mono 下编译得很好。我可以在 Linux 下启动 Gallio 控制面板,但不能启动 Icarus 或 Echo。

有没有办法在 Linux 下运行 MbUnit 测试?使用命令行(例如 Gallio.Echo)并且不需要 Monodevelop 的东西会特别有帮助。

I tried asking this on the gallio-users list, but the question failed to appear (Google Groups says the post was successful). I suppose the list might be moderated by someone who does not read his email very often :-) Seeing as SO has tags for both Gallio and MbUnit, I thought it was worth asking here.

I see the MbUnit front page mentions that they are keen on maintaining Mono-compatibility. There is also a >1-year old post on gallio-users saying that it does not work under Linux

The project I want to test compiles fine under Mono if I remove the Parallelizable attribute. I can launch the Gallio control panel under Linux, but not Icarus or Echo.

Is there any way of running MbUnit tests under Linux? Something that uses the command line (like Gallio.Echo) and does not need Monodevelop would be especially helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别闹i 2024-12-27 01:36:31

这里有一些想法,因为网上没有太多内容,而且这个项目显然处于中断状态,可能很快就不支持 Mono 兼容性。

1) 不确定您拥有的 Gallio 版本或版本,但您可以从此处尝试 Gallio 捆绑包 nuget,看看此版本是否会得到不同的结果: https://www.nuget.org/packages/GallioBundle/3.4.14。请参阅这篇文章:https://stackoverflow.com/a/21185517/9798633

2)确保您的测试是用与 Gallio 一起分发的 MbUnit 版本相同,如下所述:https://stackoverflow.com/a/2242849/9798633

3) 如果您尝试在虚拟机中的 VS 中运行,请仔细检查以确保确保您有一个引用 Gallio.dll 和 MbUnit.dll 的类库项目,如“ASP.NET MVC 4 实际操作”中所述:

ftp://soporte.uson.mx/PUBLICO/02_ING.SISTEMAS.DE.INFORMACION/PVI/ASP.NET%20MVC%204%20in%20Action.pdf

A couple of thoughts here since there isn't much online and this project is on hiatus apparently with likely no support for Mono compatibility coming anytime soon.

1) Not sure what version or build you have of Gallio, but you may try the Gallio bundle nuget from here and see if you get different results with this version: https://www.nuget.org/packages/GallioBundle/3.4.14. See this post: https://stackoverflow.com/a/21185517/9798633

2) Make sure your tests are compiled with the same version of MbUnit as was distributed with Gallio, as discussed here: https://stackoverflow.com/a/2242849/9798633

3) If you try running in VS in a VM, doublecheck to make sure you have a Class Library project with references to both Gallio.dll and MbUnit.dll as mentioned here in "ASP.NET MVC 4 in Action":

ftp://soporte.uson.mx/PUBLICO/02_ING.SISTEMAS.DE.INFORMACION/PVI/ASP.NET%20MVC%204%20in%20Action.pdf

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文