Eduard Bargues
Jan 23, 2021

Hello Almantas! Nice that you stoped by to comment on my article.

Obviously things are never that simple :D ! This is a (over) simplification of a real REST API with around ~100 tests.

About the "components" dependency that you mention, we need to differentiate between external dependencies (will need to be mocked in your tests) and internal dependencies (we are covered on that since they are tested in the approach I present).

Note that the number of tests will increase linearly with respect your external dependencies so I'm not sure I get this "geometric" increment of tests you mention. Feel free to further elaborate on that.

Have a great day!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Eduard Bargues
Eduard Bargues

Written by Eduard Bargues

Proud teacher-volunteer at Migracode and DevOps-engineer at ohpen.com where I keep pushing my AWS+Serverless knowledge every day.

No responses yet

Write a response