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.

Show HN: Objcov – Code Coverage for Objects

2 pointsby turbletyabout 4 years ago

1 comment

turbletyabout 4 years ago
Recently I&#x27;ve been building a UI builder from a schema (a json object).<p>I try to aim for 100% code coverage, but how can you do this when you &quot;code&quot; is metadata.<p>Well, I created objcov for just that. In the end, it can make sure you have touched every part of an object.<p>So if you have full test coverage, you should touch each item in your config once. This would result in `percentTouched` being 1 (or 100%)