Keeyan Nejad
1 min readAug 11, 2019

--

If you take this argument to it’s extreme I don’t see why you couldn’t use it to make a case for only black box testing. “You don’t need to test the classes because when you test the system as a whole you have also tested the classes that it’s made from”.

To be clear I’m not saying you should only do black box testing, I’m just saying that your argument could be used to make that case as well.

In the end I think testing the private methods will give you more assurance and future proofing of the methods which is much harder to get by testing them indiretly

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

--

--

No responses yet

Write a response