gpt4 book ai didi

testdriven.net - 火箭托盘图标的扩散

转载 作者:行者123 更新时间:2023-12-02 02:36:12 25 4
gpt4 key购买 nike

每次我使用 TestDriven 运行测试时,它都会在我的系统托盘上创建另一个“火箭”图标。我必须手动执行右键单击退出以摆脱它们。我怎样才能避免这种情况?

最佳答案

检查您可能在测试中创建的任何打开的文件句柄。根据您的测试套件的大小,这可能太耗时且乏味。在 TestDriven.Net 的选项中,有一个选项可以关闭在测试运行之间缓存测试过程。这似乎是为您所看到的情况而设计的。来自他们的文档:

Cache test process between test runs By default the external test process will be cached when the ‘Run Test(s)’ command is used. This process appears in the tool tray as a rocket icon which can be used to kill the process. This is fine unless one of your tests starts leaking leaking native resources (such as leaving open a file handle). The best solution is to fix the resource leak, but you now have to option to work around the issue by killing the test process at the end of each test run. This can be useful if the resource leak is in a 3rd party DLL which can’t be easily be changed.

来自这里:http://weblogs.asp.net/nunitaddin/archive/2008/12/03/testdriven-net-options-pane.aspx

我知道你一年前就问过这个问题,所以你可能已经想出了解决问题的方法。在那种情况下,我会要求你让我们知道你做了什么。

关于testdriven.net - 火箭托盘图标的扩散,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1580179/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com