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.

A pretty test runner for Go

6 pointsby gfalcaoover 11 years ago
My name is Gabriel, I love writing software. which I like to see robust, and deliver fast, and have confidence about. My main mean to achieve that is writing tests.<p>Though writing tests can be cumbersome, it&#x27;s usually the language culture&#x27;s own fault. I like to evangelize that tests should be easy to write, easy to read, understand and do maintenance.<p>That&#x27;s why I wrote python testing libraries like<p>* Lettuce - http:&#x2F;&#x2F;lettuce.it, for BDD (Inspired by Cucumber and Ruby)<p>* Sure - http:&#x2F;&#x2F;falcao.it&#x2F;sure (Assertion library inspired by should.js)<p>* HTTPretty - htt[:&#x2F;&#x2F;falcao.it&#x2F;HTTPretty (For mocking requests)<p>So lately I have been studying go, making some experiments and loved it so far. But the available testing frameworks and assertion libraries are cumbersome, setup is painful and when you run &quot;go test&quot; there is no colorful output rewarding you for all the hard work you&#x27;ve been doing writing such tests.<p>That&#x27;s why I started to prototype a test runner for go, its name is hawkeye:<p>https:&#x2F;&#x2F;github.com&#x2F;gabrielfalcao&#x2F;hawkeye<p>It uses go&#x27;s ast, scanner and parser to find specs, put them in a temporary file and run them.<p>Gophers and hackers who are very experienced with testing, please give some feedback

no comments

no comments