Testing conventions #43
Replies: 3 comments 1 reply
-
@heitorlessa I feel like unit and Functional are under the same umbrella in real life examples, how many times do you have a pure functional code that does not require fake or test doubles. I just think it adds to the complexity to the summary. In addition I think it's interesting to add to the summary a reference to where should you invest your time, for example integration tests have better ROI than unit testing or functional testing. Check this for reference -
|
Beta Was this translation helpful? Give feedback.
-
Functional test.can be around specific handler classes (db handler, external service handler.class etc.) or logic adapter classes. |
Beta Was this translation helpful? Give feedback.
-
@heitorlessa I'd add that in integration tests, we test from the handler entry point with a sample event to simulate a business use case/input |
Beta Was this translation helpful? Give feedback.
-
Summary
Testing definitions that we will use throughout the project. We can update this with examples for each test category later (to get the ball rolling quickly).
Proposal
I'd like to propose we group tests in 5 categories:
Why
It's common for every company and project to have variations of their tests. This can create friction during review and can limit our ability to enforce certain design practices (e.g., fail Unit tests if a TCP/Unix socket is opened).
Potential challenges
We need some guidance on how much we test CDK custom constructs - do we add them under
unit
? orfunctional
, or create something entirely new?Out of scope
N/A
Beta Was this translation helpful? Give feedback.
All reactions