简体   繁体   English

如何在PNUnit下使用NUnit插件

[英]How to use NUnit Addins under PNUnit

I want to use NUnit Addins and run tests using PNUnit. 我想使用NUnit插件并使用PNUnit运行测试。 It is possible or am I just doing something wrong? 有可能还是我只是做错了什么? It works individually, but when I run through PNunit it ignores NUnit Addins that use EventListeners. 它可以单独工作,但是当我通过PNunit运行时,它将忽略使用EventListeners的NUnit插件。

Thanks in advance for your answers and please forgiveness if that stupid asking the network information is not found. 预先感谢您的回答,如果找不到那个愚蠢的询问网络信息的消息,请原谅。

This isn't possible at present; 目前尚无法实现; PNUnit doesn't set up the enviroment needed to load NUnit Addins. PNUnit没有设置加载NUnit插件所需的环境。

There's one exception to this, which is that any classes with the [NUnitAddin] attribute and defined in your test assembly will be loaded as addins. 有一个例外,那就是在您的测试程序集中定义的具有[NUnitAddin]属性的所有类都将作为插件加载。 So you might be able to get the addins you want loaded that way. 因此,您可能能够以这种方式获取要加载的插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM