{"action":"closed","issue":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/414","repository_url":"https://api.github.com/repos/danielgindi/ios-charts","labels_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/414/comments","events_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/414/events","html_url":"https://github.com/danielgindi/ios-charts/issues/414","id":108016808,"number":414,"title":"Unit tests? ;)","user":{"login":"yas375","id":217368,"avatar_url":"https://avatars.githubusercontent.com/u/217368?v=3","gravatar_id":"","url":"https://api.github.com/users/yas375","html_url":"https://github.com/yas375","followers_url":"https://api.github.com/users/yas375/followers","following_url":"https://api.github.com/users/yas375/following{/other_user}","gists_url":"https://api.github.com/users/yas375/gists{/gist_id}","starred_url":"https://api.github.com/users/yas375/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yas375/subscriptions","organizations_url":"https://api.github.com/users/yas375/orgs","repos_url":"https://api.github.com/users/yas375/repos","events_url":"https://api.github.com/users/yas375/events{/privacy}","received_events_url":"https://api.github.com/users/yas375/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danielgindi/ios-charts/labels/feature","name":"feature","color":"2d9e11"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-23T22:03:47Z","updated_at":"2016-02-29T16:30:48Z","closed_at":"2016-02-29T16:30:48Z","body":"How about adding some unit tests to the project? ;) Would be nice to have view snapshot tests. This should be useful in cases when someone finds some bug in rendering. We can write a unit test which will capture how it looks like. It will reduce possible regressions in future since a lot of people are using different parts of the library (different chart types) and can fix an issue in one chart, but it will cause an issue for another one.\r\n\r\nI'm happy to volunteer to set up test environment :) If you are ok with that, then do you have any preferences on frameworks to use?\r\n\r\nI'd like to try to use Quick, Nimble, and Nimble-Snapshots. I haven't worked with these libs yet because we have testing set up in Obj-C at work. But these libs look promising. We can see Artsy is [using](https://github.com/artsy/eidolon/blob/426116c94386ff26c824bbaf9647f4b7d9f9ada9/Podfile#L66-L68) them as well. Should be good :)"}}