1

DotTrace can be used to profile tests on TeamCity. But this example works with NUnit, while my tests are written in Visual Studio Tests. When running my tests I use the build-in test engine VSTest, no such option is available for the DotTrace profiler plugin. Instead I need to specify the path for the test engine executable.

I did find an executable VSTest.exe but it's path includes "Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs", so unsurprisingly it doesn't work. Saying it can't find a start.bat file, that does indeed not exist in that .exe file.

What is the executable path that TeamCity uses for VSTest?

Then I can configure the performance test to use that test engine. I know the tests can be executed using DotTrace, having run it in Visual Studio, just don't want to install Visual Studio and the DotTrace plugin there when there's a TeamCity plugin.

4

1 回答 1

3

据此您可以在 TeamCity 代理上安装 Visual Studio 测试代理,然后在 XML 配置中指定vstest.console.exe作为分析目标。

不过,我建议您尝试一个新的 dotTrace 插件版本(如果它要求您提供凭据,请指定没有密码的访客)。它尚未正式宣布,但功能齐全。

主要区别在于插件现在集成到“单元测试”构建步骤中,例如 Visual Stiduo Tests、NUnit、MSpec、MSTest。因此,它不需要配置文件。因此,安装插件后,所有单元测试步骤都会在 dotTrace profiler 下获得额外的选项 Run build step. 您需要做的就是添加 Visual Studio 测试步骤,在此处选中此选项并像往常一样指定性能阈值。

于 2015-11-01T10:34:46.090 回答