bdauer / tasktracker

tracker for one-off, timed and recurring tasks scheduled for or due on a given day.
2 stars 0 forks source link

TESTS #34

Closed bdauer closed 7 years ago

bdauer commented 7 years ago

Write tests for a lot of what has been done and refactor. Maybe pick a day to focus primarily on that.

bdauer commented 7 years ago

Ongoing. Added a bunch of tests for the Task model this morning. Found and fixed a bug that caused monthly recurring tasks to occur a week off some of the time (it was related to the structure of calendar.Calendar.monthdatescalendar).

bdauer commented 7 years ago

Wrote a ton of tests to cover the Task methods. I could still use some test coverage elsewhere (e.g. signals, Celery, js) but this was the milestone I wanted to reach for this task. Any new test issues can go into a new issue.

On the plus side, this helped me to realize how important it is to test early. I could have caught some bugs earlier. As I'm fixing another bug I can I also see how having the tests in place is going to make maintenance a lot easier.