TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to make sure developers do not change public API?

2 pointsby julbaxterabout 7 years ago
How do you make sure developers in your team or in the company do not change the public API of the application when it is not planned? Yes you can write unit-tests, but they can also change/fix the unit-tests to have a green build.

2 comments

itamarstabout 7 years ago
In addition to normal unit tests, you can write tests whose job is a warning to a human being &quot;you are about to do something dangerous, are you sure?&quot; With a way to say &quot;yes I meant to do that&quot; when necessary.<p>Whereas unit tests test the product, these tests are oriented towards the development process.<p><a href="https:&#x2F;&#x2F;codewithoutrules.com&#x2F;2016&#x2F;03&#x2F;01&#x2F;process-reminders&#x2F;" rel="nofollow">https:&#x2F;&#x2F;codewithoutrules.com&#x2F;2016&#x2F;03&#x2F;01&#x2F;process-reminders&#x2F;</a> has an example.
dozzieabout 7 years ago
So basically, you don&#x27;t trust your developers to do their job properly. Do I understand that correctly?
评论 #16601146 未加载