Abstraction through protocols makes UI testing easy
In some of the recent updates of Rigelian there have been bugs that really should have been caught before releasing, but slipped through because of a lack of automated tests. Therefor I revisited the test strategy. In the past I created some ui-tests, but they were relying on a local mpd player that was started before running the test-cases and shutdown again afterwards. The player was configured with some standard albums. This worked locally but broke when I switched to a new computer, and the approach is also not suited if the application is ever moved into a ci/cd platform […]
Artist view with biography and similar artists
The next version of Rigelian integrates with last.fm to bring biographies and similar artists to the artist view. Coming soon to the App Store.
last.fm integration through swift
The upcoming release of Rigelian will focus on the artist view: a more image based view, improved handling of artist images and the addition of artist biographies and similar artists. Biographies and similar artists will be retrieved from last.fm, which offers an api for this. To abstract the networking part I created a new package that encapsulates the api calls into nice observables. let lastfmApi = LastFMApi(apiKey:”your key”) lastfmApi.info(artist: “Taylor Swift”) .subscribe({ onNext: (result) in switch result { case let .success(info): print(“Info: \(info)” case .failure(error): print(“Error: \(error)”) } }) .disposed(by: bag) […]