2 ms·
Thanks for sharing, I missed your earlier "show hn": https://news.ycombinator.com/item?id=28086637 https://news.ycombinator.com/item?id=28086637 As someone not
by e12e 5y ago
Thanks for sharing, I missed your earlier "show hn": https://news.ycombinator.com/item?id=28086637 https://news.ycombinator.com/item?id=28086637
As someone not too familiar with Django, this looks like a nice codebase :)
But am I right that there are no tests?
- epilys 5y agoThank you! Indeed there are no tests. I'm not familiar with testing in Django or web apps in general but I want to add some once I figure out what and how I should be testing.
- e12e 5y agoWell, in my limited experience, the best way to do testing is to start with tests first (TDD/BDD) - and the second best, when you've started, and have no tests - is to start from a bug: someone reports a real bug, in your real system - and you try and write a test that's failing in such a way, that when you alter the system to fix the bug, the test will pass. Typically the first test will be quite painful - you might have to install a testing dependency, possibly re-work some code to allow for testing etc. But then, the next test should be a little easier. And after a few bugs and tests, you might find that for your next feature, you can somewhat easily start with a failing test. /unsolicted_advice