AndInTheClouds / chordreader2

Search for, display, transpose and save chords on your phone, that you get from the interwebs. :notes:
GNU General Public License v3.0
31 stars 8 forks source link

No Ticket: Add unit tests for `StringUtil` #21

Closed wtimme closed 1 year ago

wtimme commented 1 year ago

This branch adds unit tests for the methods in StringUtil that are in use (for the rest of the methods, see #20).

As outline in this commit message, I am not fully sure what all the configuration changes do, or if they are even needed. I am also not sure if the changes have an impact on the F-Droid build, since I haven't tested that.

I'd be very grateful for any input on these changes. My main goal here is to be able to kick-off the addition of unit tests, as I find these to be vital before any other refactoring (e.g. #15).

You can test the changes as follows:

  1. Checkout the branch
  2. Open the project
  3. Start the Gradle Sync
  4. Run the unit tests with coverage