sionleroux / GuessTheAnimal

An android game demonstrating a simple AI which learns to guess animals
GNU General Public License v2.0
1 stars 1 forks source link

Decouple UI from logic better to make it testable #15

Open ezisazis opened 7 years ago

ezisazis commented 7 years ago

Writing tests is the most basics skills for a programmer nowadays right? ;)

sionleroux commented 7 years ago

This is a good idea, but in its current state the application logic is too tightly coupled to the UI, so it's difficult to unit test the logic independently. We'll need to do a refactor first and then tests will come naturally. Some things I can imagine tests for:

Anything else? @ezisazis

ezisazis commented 7 years ago

So far so good I think

sionleroux commented 7 years ago

@ezisazis If commits you write work towards solving this, will you mention the issue number in the commit message details part please?