Skip to content
This repository has been archived by the owner on Aug 6, 2018. It is now read-only.
Burgestrand edited this page Apr 21, 2011 · 31 revisions

How to run the tests

Hallon comes bundled with tests to make sure nothing breaks between releases and that everything works as expected. Running the tests does however need an application key and login credentials for Spotify. The reason for this is that Hallon tests live against Spotify (if you know a better way, please do tell).

The application key must be recovered from Spotify, and login credentials are the same username and password you use for Spotify. The tests must be aware of all three of these things. The most simple way is to download the binary distribution of your Spotify application key into spec/support/spotify_appkey.key, and create the file spec/support/config.rb with the following contents:

ENV['HALLON_USERNAME'] = 'spotify username'
ENV['HALLON_PASSWORD'] = 'spotify password'
ENV['HALLON_APPKEY']   = File.expand_path('../spotify_appkey.key', __FILE__)

Running the tests after that should be a simple rake test.

PS: Do note that you need libspotify installed; for help with that see the installation help page for libspotify-ruby.