简体   繁体   中英

How to add profiling to unit test cases in Teamcity?

Is it possible to add memory/performance profiling of unit tests as a team city build step?

I am specifically interested in doing it for our .Net apps (test cases are written in NUnit). Any elaboration on this will be highly appreciated.

Teamcity version is "TeamCity Enterprise 7.1.2 (build 24170)"

Thanks.

As far as I know, TeamCity does not support profiling .Net apps yet. At least not in a direct way.

There is an open feature request TW-20190 planning to integrate dotTrace (a .Net profiler made also by JetBrains) in Teamcity.

But dotTrace can be called from command line , so you can write MSBuild/NAnt script to execute dotTrace. The problem is about how to display the profiling results. In "General Settings" page of your build config, you can point artifacts path to the dotTrace result folder, so that teamcity will publish the profiling results as artifacts for you to download.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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