【问题标题】:Assembly location during run of unittest单元测试运行期间的装配位置
【发布时间】:2012-07-20 13:19:07
【问题描述】:

我希望在 mstest 运行时更改我的装配位置。 如果我使用 Visual Studio 运行我的 mstest 单元测试,它会在我的项目文件夹的子文件夹中运行。 但是,如果我使用 resharper 运行我的 mstest 单元测试,调用 this.GetType().Module.Assembly.Location 会显示 C:/temp/somewhere。

如何更改重新锐化器的行为?我已经尝试更改 ReSharper -> 选项 -> 工具 -> UnitTesting -> 运行测试。但它没有任何效果。

【问题讨论】:

    标签: unit-testing resharper


    【解决方案1】:

    只需取消选中"Shadow-copy assemblies being tested"
    测试将从您在 "Run tests from" 选项中选择的位置运行。

    【讨论】:

      猜你喜欢
      • 2017-01-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-23
      • 1970-01-01
      • 1970-01-01
      • 2012-10-21
      • 2013-04-03
      相关资源
      最近更新 更多