Constants in tests #2

Igor Budasov
WebDevOps
Published in
1 min readOct 24, 2018

Despite other arguments against using constants in test, there is one more.

You can not make a constant private, even though you don’t use it in the rest of the codebase, if the constant is being used in the tests.

In the worst case, and when all the codebase is consistent, you’ll never have a private constant 🤔

--

--

Igor Budasov
WebDevOps

A traveller. A drinker. A photographer. A blogger. An engineer.