【问题标题】:Any way to enable stacktraces in MsTest?有什么方法可以在 MsTest 中启用堆栈跟踪?
【发布时间】:2015-06-30 07:02:23
【问题描述】:

有时我在运行 MsTest 时遇到错误,并且几乎没有上下文可以追踪问题,例如:

<ErrorInfo>
    <Message>Unit Test Adapter threw exception: Type is not resolved for member 'Castle.MicroKernel.SubSystems.Conversion.ConverterException,Castle.Windsor, Version=3.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc'..</Message>
</ErrorInfo>

注意点“..”是否有一些标志或任何东西可以使它包含错误的其余部分?我正在从命令行运行 Mstest。

【问题讨论】:

  • 我取得了一些不理想的进展,但无论如何......测试由名为 QTAgent32.exe 的进程运行,通过查看其配置文件,我可以看到它实际上将错误记录到事件日志中,去搞清楚。堆栈跟踪在那里完成。

标签: mstest


【解决方案1】:

您可以从命令行添加 errorstacktrace 参数:

mstest /testcontainer:MyTests.dll /detail:errorstacktrace

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-04-11
    • 2011-11-11
    • 2011-11-20
    • 2010-09-17
    • 1970-01-01
    • 2023-04-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多