oliverearl / group-project-5

Task Management Software - CS22120 Group Project. Components written in Java, PHP and Bash/MySQL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add unit tests to code

DavidFair opened this issue · comments

Currently there are no unit tests. This means the code coverage is basically none and an issue we kept running into during development was regressions which were manually discovered. If we implemented unit tests wherever possible first we could then at least get rid of the majority of bugs and look at using a free continuous integration service to set up a work flow and use git and github "correctly"

For unit testing database logic we should look at using a mocking framework (if one exists for Java) to emulate the database and its responses. This way the unit tests would not become dependant on the implementation of the remote database (or whether it is offline/online)