Small Update to Loris (0.1.3)
April 12th, 2010
A few months ago I wrote about Loris, a small tool that will automatically run your javascript tests whenever a file changes.
I’ve just released a new version of the Loris gem with a couple of minor fixes:
The dependency on
win32-processhas now been removed from the gem. This means the gem now installs correctly on OSX. Windows users will manually need to install thewin32-processgem.The dependancy on
visionmedia-bindhas been updated to justbind, reflecting the gems new name on RubyGems.The JS Test Driver server is now reset between all tests. This stops it getting into a situation where it failed to pick up changes to files.
Because RubyGems is now the default gem host, this install process is a little simpler.
sudo gem install loris
or on Windows
gem install loris gem install win32-process
QUnitAdapter 1.1.0
April 9th, 2010
I’ve updated the JS Test Driver QUnitAdapter to improve compatibility with QUnit.
Variables set on the this object within are now available within setup, teardown, and the tests themselves.
module('Lifecycle', { setup: function() { this.mockString = "some string"; }, teardown: function() { equals(this.mockString, "some string"); } }); test("Things assigned to this in setup are available in test", function() { equals(this.mockString, "some string"); });
The test function now supports the optional second parameter of the expected number of assertions.
// declare that this test has expects 1 assertion test('Test with expected defined as 2nd param', 1, function(){ ok(true); });
My thanks go to anotherhero for providing the patch to fix both these issues.
You can always download the latest version of QUnitAdapter from Google Code.