futurice / freesound-android

Unofficial Android client for the Freesound Project
Apache License 2.0
85 stars 16 forks source link

Add tests for API model JSON parsing #144

Open peter-tackage opened 7 years ago

peter-tackage commented 7 years ago

We currently have no tests for our API model JSON parsing, meaning that changes to mapping libraries etc cannot be verified without running the app.

We should have tests for the basic parsing of the model objects.

peter-tackage commented 7 years ago

This is generally the type of testing that I had in mind: https://github.com/peter-tackage/soundmap/tree/master/app/src/test

Start with the happy path for a single model type in the first PR and go from there.

Kotlin has some nice helpers for reading in files if that's the approach you want to use.

joan-domingo commented 7 years ago

👍 will follow that one