G'day.  Recently the dev team have been burning part of our lunches
and stuff talking about how the heck to get better testing of our
JavaScript and web focused code in the dashboard.  We have lots of
great support for Ruby testing, but not as much as we would like in
that space.  This is being sent to the broader audience of 'tech' in
case any of you have experience with these tools, or alternative
suggestions.

Anyway, I stumbled across some tooling that might well help do this:
it certainly looks to bring a bunch of what rspec delivers over to the
JavaScript and web environment, and to do that without tying us to a
specific implementation, to a browser, or (perhaps especially) to
something with a "head": this can run out of a CI server without a
display at all.  (Incidentally, also cross platform.)

Jasmine, from Pivotal Labs: https://github.com/pivotal/jasmine/wiki

Jasmine is pleasantly rspec-like, and comes with Ruby and Rails2
integration in the form of a gem.  They note that they have "better
rails3/rspec2 in master, not yet released", which I have not finished
peering at yet.

Aside from a reasonably sensible set of internals, this will also run
with either nodejs, or with phantomjs, which later provides a WebKit
based DOM as well as console-driven JavaScript.

It looks worth further investigation to me, especially in terms of
integration with phantomjs to provide a real "browser" environment in
which the test code is run.

I wondered if anyone out there had any further comment or, ideally,
experience with these tools to share?

Daniel
-- 
⎋ Puppet Labs Developer – http://puppetlabs.com
✉ Daniel Pittman <[email protected]>
✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775
♲ Made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to