简体   繁体   English

在MonoDevelop内部的并行Mono环境中运行测试

[英]Running tests in parallel mono environment inside of MonoDevelop

I have a parallel mono environment installed to run my app and unit tests. 我安装了并行的Mono环境来运行我的应用程序和单元测试。 The app relies on MONO_PATH to find some of the assemblies it depends on. 该应用程序依靠MONO_PATH来找到它依赖的某些程序集。

Now when I run my unit tests in Monodevelop they don't work because MONO_PATH gets cleared before running the tests. 现在,当我在Monodevelop中运行单元测试时,它们将不起作用,因为在运行测试之前会清除MONO_PATH。 Setting environment variables in the project options doesn't help because they don't get set when running tests. 在项目选项中设置环境变量没有帮助,因为在运行测试时不会设置它们。

Any ideas how the tests could be made to work within MD? 有什么想法可以在MD中进行测试吗? Are there any extension points that I could plug in to? 我可以插入任何扩展点吗?

(MD 5.9.8 with Mono 3.12.1; my app requires Mono 3.4) (带有Mono 3.12.1的MD 5.9.8;我的应用需要Mono 3.4)

Make your test project depend on the libraries so they get copied to your bin/DEBUG|RELEASE/ path before execution? 使您的测试项目依赖于库,以便在执行前将它们复制到bin/DEBUG|RELEASE/路径中?

Take in account that MONO_PATH is just a debugging tool and shouldn't be used in production . 考虑到MONO_PATH只是一个调试工具,不应在生产中使用

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

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