basho/riak_control — pull request #152 by vanstee (2013-09-14 22:39:54+00:00)
Title: Setup javascript test libraries for unit and integration tests

:construction: Not yet ready to merge.

Here's a first pass at getting QUnit setup and pulling in the ember-testing library. The only new dependency is [phantomjs](http://phantomjs.org/), which isn't too bad. The [`runner.js`](https://github.com/vanstee/riak_control/blob/df81a0587c21aeaacf55b8d3d9a05ed34444de49/test/javascripts/runner.js) does the heavy lifting to load up the test suite in a headless browser window.

We should also be able to run full integration tests against a local `riak_control` server if we want to with `visit`, `click`, and `fillIn` style helpers (basically like using capybara). For now I'll just stick to unit tests and integration tests that use the `FixtureAdapter`.

I still haven't figured out a great way to specify `phantomjs` as a development dependency and I'm not entirely sure what kinds of tests and coverage you had in mind. Just wanted to get something up for you to checkout before I spend too much time on it.

Try it out by running `make test_javascript`.

How does it look so far?

Fixes #63