DEV Community

romanwrites
romanwrites

Posted on

Why do we need tests?

To easily make changes to the code.

When you work with someone else's code, there may be a lot of troubles:

  1. The code is unfamiliar. Implementation details are not obvious.
  2. The code can be toughly coupled.
  3. It can be difficult to track where else the code is used.

Functional tests make life much easier. Not these that just check the code coverage. But those tests that test exactly the behaviour, functionality of a program.

Tests are like a safety net on a construction site. When they are exist, you can cut out or add features bolder. The features will get to the production faster. And it will be beneficial for the company in money.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay