Skip to content

Development practices

Mat Ryer edited this page Nov 5, 2013 · 1 revision

Test driven

Goweb uses Testify, to aim to get as much code coverage as possible. This is especially helpful when you have a number of people contributing code to the project.

Test driven refers to writing the test code first. Why are we so pedantic about it? Writing a test and seeing it fail is vital because it proves that a) it's a valid test, and b) the code you write addresses the intended problem. As times goes on, we end up with a rich test suite ensuring we don't regress.

Find a bug?

If you think you've found a bug, prove it. Prove it with a test. If you can submit a test that fails, you have demonstrated that something is not working as expected. Then, when the bug is fixed, we leave your test in the suite so we never see that nasty little bugger again.