Q) Temporal checks in Pact?
Can Pact describe temporal constraints as well as what the API call returns etc?
For eg, the call should return within X ms.
For example with pact-net, I can see that this is implemented in IRequestBuilderV4, but there are no temporal-like checks there.
👎 1
b
Boris
09/25/2023, 2:36 AM
No, Pact isn't intended for performance, load, or functional testing.
Boris
09/25/2023, 2:37 AM
Cool question, though 👌
Boris
09/25/2023, 2:39 AM
Pact is conceptually more like a unit-testing framework. It doesn't simulate real-world infrastructure and performance constraints, and almost never runs in a prod-like environment.
Boris
09/25/2023, 2:41 AM
You might've seen some test pyramid diagrams before, here's one of mine:
💯 1
Boris
09/25/2023, 2:42 AM
performance and load testing are definitely the realm of the light-grey box, and results are only relevant for the environment they're running against
k
Kwee H Tan
09/25/2023, 8:24 PM
@Boris Thanks for your reply. To understand your picture, what does BFF stand for? I know its' not "Best Friends Forever" like I googled. Also you mentioned light-gray box -- do u mean the box with the light gray arrow pointing to automated e2e tests?
b
Boris
09/26/2023, 1:23 AM
in this context, BFF means "back-end for front-end"
Boris
09/26/2023, 1:24 AM
and yes, that's right, the box with the light-grey arrow pointing to automated e2e tests 👍