“运行测试”在哪里?在单一开发中
我有一个已经包含带有 NUnit 测试的库的解决方案。当我使用 Visual Studio 进行开发时,我通常使用项目中 tools\nunit
文件夹中包含的 nunit.exe 二进制文件运行这些测试。
我现在正在使用 monodevelop 开发相同的解决方案。我很确定我记得 monodevelop 中有一个集成的“运行测试”操作,我想用它来运行测试。根据 这篇文章 应该有一个“查看 - 单元测试”菜单项。但是,我一定做错了什么/特别的事情,因为我找不到它。
如何使用 Monodevelop 运行 NUnit 测试?
I have a solution already containing a library with NUnit tests. When I develop with Visual Studio, I normally run these tests with the nunit.exe binaries I have included in a tools\nunit
folder in my project.
I'm now developing the same solution with monodevelop. I'm pretty sure I remember that there was an integrated "run tests" action in monodevelop, and I would like to use this to run the tests. According to this article there should be a "View - Unit Tests" menu item. However, I must be doing something wrong/special because I can't find it.
How do I run my NUnit tests with Monodevelop?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
试试这个:
Try this:
如果您使用的是 Ubuntu,请确保通过包管理器安装了 MonoDevelop NUnit 插件。获得后,单击“查看 -> 焊盘 -> 单元测试”。将显示单元测试板,然后您可以通过双击它们来运行测试装置。
If you are using Ubuntu, make sure you have the MonoDevelop NUnit plugin installed through the package manager. Once you have it, click on "View -> Pads -> Unit Tests". The unit tests pad will be shown and then you can run test fixtures by double clicking on them.
总结到目前为止的答案:
sudo apt-get install monodevelop-nunit
View |护垫 |单元测试
使用全新安装的 Ubuntu 12.04 和 MonoDevelop 2.8.6.3 进行测试。
To summarise the answers so far:
sudo apt-get install monodevelop-nunit
View | Pads | Unit Tests
Tested with clean installs of Ubuntu 12.04 and MonoDevelop 2.8.6.3.
我不记得有内置的“运行测试”操作单声道开发。但有一个插件您可以使用。
编辑:我在这里找到了更多信息: http://www.codeproject.com/KB/提示/NUnit_MonoDevelop.aspx。如果没有帮助,我明天可能会在我的单声道开发上尝试一下,你使用什么平台?
I don't recall that there is a "run tests" action built-in mono develop. But there is an add-in you can use.
EDIT: I found some more info here: http://www.codeproject.com/KB/tips/NUnit_MonoDevelop.aspx. If it doesn't help, I might try it tomorrow on my mono develop, what platform are you using?