lucian1900/Backbone.dualStorage — pull request #28 by nilbus (2012-12-05 03:58:06+00:00)
Title: Test Backbone.dualStorage

Check out the changes to the README for instructions on running the test suite.

I set up tests for this project using jasmine-node. I chose this over doing a browser-based test suite so that it can be run from the command line, especially with jasmine-node --autotest during development.

Every component (Store, localsync, dualsync) is covered with unit tests. A small set of integration tests also ensure that things work end-to-end.

The primary goal of these tests is to document and test current behavior so that changes in behavior will not go unnoticed. A bugs_spec exists to document three of the known existing bugs. When these bugs get fixed, the tests should fail, and they should then be inverted to test the bug's absense instead of presence.

With these tests in place, I'm going to look into putting lawnchair as a Store replacement. After that, I'd be happy to continue maintaing the project like you suggested.

How do the tests look to you?