简体   繁体   中英

Jenkins: Monitoring for JUnit test execution time?

In order to prevent performance degradation in my project, I would like to introduce some monitoring on the runtime of JUnit tests in jenkins. Ideally, I would like to see the execution time of tests over time as a diagram in Jenkins (ie a test execution time trend graph). The runtime of a single test (or test category) over time would also be interesting. RAM usage monitoring per test would be a nice-to-have too. I've seen some approaches online, people even go as far as using the SonarQube plugin just to have this kind of test execution time monitoring.

My question is: how do you tackle this problem? It seems like a very basic and straight-forward thing to do, but there doesn't seem to be a clear solution in Jenkins.

The Stage View plugin can provide insight in the timing of various stages, and something like the Plot Plugin can be used to plot data across builds.

Wiring these two together seems like a plausible solution.

I am using JMeter Plugin an have this kind of tracking, it's not the same, but it helps me a lot for the Quick testing of tha API's 在此输入图像描述

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