Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

laracoft's avatar
Level 27

How to get timing of each test method?

How do you guys identify the tests cases that take too long to run? i.e. how do you monitor the overall health of your tests?

I would like to also be able to capture this data and output it via my notification channels

0 likes
3 replies
laracoft's avatar
Level 27

@Tray2 thanks, i forgot to add that I also need to capture and broadcast the data via my notification channels, let me google but I don't think --profile can write to a file

Tray2's avatar
Tray2
Best Answer
Level 73

@laracoft You can always just ./vendor/bin/pest --profile >> target-file.txt

Please or to participate in this conversation.