{"action":"created","issue":{"url":"https://api.github.com/repos/hammerlab/cycledash/issues/380","labels_url":"https://api.github.com/repos/hammerlab/cycledash/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/hammerlab/cycledash/issues/380/comments","events_url":"https://api.github.com/repos/hammerlab/cycledash/issues/380/events","html_url":"https://github.com/hammerlab/cycledash/issues/380","id":51363691,"number":380,"title":"Run tests with CasperJS","user":{"login":"danvk","id":98301,"avatar_url":"https://avatars.githubusercontent.com/u/98301?v=3","gravatar_id":"","url":"https://api.github.com/users/danvk","html_url":"https://github.com/danvk","followers_url":"https://api.github.com/users/danvk/followers","following_url":"https://api.github.com/users/danvk/following{/other_user}","gists_url":"https://api.github.com/users/danvk/gists{/gist_id}","starred_url":"https://api.github.com/users/danvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danvk/subscriptions","organizations_url":"https://api.github.com/users/danvk/orgs","repos_url":"https://api.github.com/users/danvk/repos","events_url":"https://api.github.com/users/danvk/events{/privacy}","received_events_url":"https://api.github.com/users/danvk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hammerlab/cycledash/labels/tests","name":"tests","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-08T22:48:24Z","updated_at":"2015-05-21T15:51:30Z","closed_at":null,"body":"Screenshot tests are great, but they're not very specific about what they're testing. I'm [adding](https://github.com/hammerlab/cycledash/pull/379) screenshot tests for filtering validated VCFs to make sure that our numbers are correct. But this screenshot will also capture unrelated UI changes. The stats are just a few pixels on the page, it's easy to imagine a breaking change getting lost in a larger UI change.\r\n\r\n[CasperJS](casperjs.readthedocs.org) is a tool for scripting pages rendered using PhantomJS. It has a [testing mode](http://casperjs.readthedocs.org/en/latest/testing.html) which would be a great fit for us.\r\n\r\nAnd because assertions aren't dependent on details like web fonts and system-specific widget UI, CasperJS tests could be run on Travis! This would let us test some of our Python code on Travis-CI for the first time.\r\n\r\nI filed an [issue against dpxdt](https://github.com/bslatkin/dpxdt/issues/122) to see if Brett thinks this is in-scope for dpxdt or should be done some other way.\r\n\r\nEither way, this is something we should do!"},"comment":{"url":"https://api.github.com/repos/hammerlab/cycledash/issues/comments/104327626","html_url":"https://github.com/hammerlab/cycledash/issues/380#issuecomment-104327626","issue_url":"https://api.github.com/repos/hammerlab/cycledash/issues/380","id":104327626,"user":{"login":"ihodes","id":167803,"avatar_url":"https://avatars.githubusercontent.com/u/167803?v=3","gravatar_id":"","url":"https://api.github.com/users/ihodes","html_url":"https://github.com/ihodes","followers_url":"https://api.github.com/users/ihodes/followers","following_url":"https://api.github.com/users/ihodes/following{/other_user}","gists_url":"https://api.github.com/users/ihodes/gists{/gist_id}","starred_url":"https://api.github.com/users/ihodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihodes/subscriptions","organizations_url":"https://api.github.com/users/ihodes/orgs","repos_url":"https://api.github.com/users/ihodes/repos","events_url":"https://api.github.com/users/ihodes/events{/privacy}","received_events_url":"https://api.github.com/users/ihodes/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T15:51:29Z","updated_at":"2015-05-21T15:51:29Z","body":"This is possible in seltest, and will be made nicer with https://github.com/ihodes/seltest/issues/50 fixed"}}