How do you show the time each test can take? #4010
Unanswered
matthew-dean
asked this question in
Q&A
Replies: 2 comments
-
https://vitest.dev/config/#slowtestthreshold
It looks like we can't output total test time in green, only in yellow with |
Beta Was this translation helpful? Give feedback.
0 replies
-
maybe one day... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I feel like an idiot. I've tried every trick I can think of, but I can't get the time to show per test. It shows for a
describe
orit
block if it's over a certain threshold, but I can't figure out how to configure that.Regardless, I don't want a yellow warning, I want a plain (or green) output of the total test time (or yellow if it's over a certain threshold).
I've tried defining the tests differently. I've tried console logging (which definitely doesn't work). I've searched all the APIs for SOME WAY to output something next to the test description. Or change any kind of logging? Or put anything in the console in a predictable fashion? I've tried configuring reporters (which definitely don't seem to do what the documentation says it does? -- or they do and I don't understand what it's saying?)
How on earth can you LOG HOW MUCH TIME A TEST TOOK NEXT TO EACH TEST DESCRIPTION?
At the very least, how do you log something under the description? I've torn all my hair out. I have no hair.
Beta Was this translation helpful? Give feedback.
All reactions