[ $davids.sh ] โ€” david shekunts blog

**๐Ÿ‘Š How to Make Developers Write Tests?

# [ $davids.sh ] ยท message #125

**๐Ÿ‘Š How to Make Developers Write Tests?

**Another question I've heard multiple times from inexperienced Team Leads.

The answer is simple: you don't need to force them.

And here's what you need to do, as described in this article.

Good luck to everyone ๐Ÿ’ช

#testing

  • @ ref1exxx ยท # 209

    Why negotiate? There are tools like Sonar or similar ones.

  • @ ๐Ÿฆพ IT-Dressing room ๐Ÿ’ช ยท # 210

    Can you send the link, what exactly is this "sonar"?

  • @ ref1exxx ยท # 211

    Set up CI/CD to reject pull requests if there are no tests. And also configure SonarQube to perform other code checks.

    https://ru.m.wikipedia.org/wiki/SonarQube

  • @ ๐Ÿฆพ IT-Dressing room ๐Ÿ’ช ยท # 212

    About CI/CD: yes, we definitely set up a stage after the build that runs tests. The question of this and the previous article is: "What tests and in what situations should be written" - and my main ideas are: (1) invest more in the debugging process than in tests, (2) first and foremost, the developer themselves should be responsible for the quality of the functionality and decide whether they need tests for that.

    And about SonarQube: from my own experience, I can say that tools of this kind usually have a very narrow range of capabilities and therefore are not worth their money (if we integrated them, we quickly threw them out).

    If you have positive experience using SonarQube, it would be great if you could share it)