TimeLimitTrait: minimal time limit way to huge

From the Documentation of .timeLimit(_:):

Test timeouts do not support high-precision, arbitrarily short durations due to variability in testing environments. The time limit must be at least one minute, and can only be expressed in increments of one minute.

Unit Tests are usually considered too long when they take more than 0.1 seconds. So a minimal time limit of on minute is completely useless for unit tests.

Is there a similar trait in Swift Testing to handle millisecond time limits?

Hi Dom :)

I just posted a pitch and API proposal for that here. I'd like to invite you to join the discussion there. I've laid out the reason why we chose to do constrain the API in the proposal.

TimeLimitTrait: minimal time limit way to huge
 
 
Q