This is a really poor demo.<p>I opened up the demo page and generated the tests. On first glance, I see a bunch of tests that just verify that the given code does exactly what it was written to do. That misses the _entire_ point of tests. Oh, and only a single test case for each function.<p>Looking a bit more closely, the test cases wouldn't even pass. They're just filled with placeholder values. Okay, fine, the boilerplate is generated, but you have to fill in the expected returns.<p>What about mocks? Why can I only have one test case per function? Also, None of these test cases are documented. You're really still writing the bulk of the tests yourself anyway.<p>I'm not saying there is no value here, but if there is value, that demo shows none of it.
This would be great if it were implemented as a "go generate" compatible script or executable. [1]<p>[1] <a href="https://blog.golang.org/generate" rel="nofollow">https://blog.golang.org/generate</a>
I assumed this was a joke about how bad some unit tests are. Then i thought it might be a satire on unit tests, from someone who really thinks they're pointless.<p>Then i realised that this is a demo of a company that someone actually wants to make their fortune with:<p><a href="http://magictests.com/" rel="nofollow">http://magictests.com/</a><p><a href="https://angel.co/magictests" rel="nofollow">https://angel.co/magictests</a>
500 Internal Server Errors out the wazoo; e.g. <a href="http://magictests.com/static/js/bootstrap.min.js" rel="nofollow">http://magictests.com/static/js/bootstrap.min.js</a>