record-tape

0.1.0 • Public • Published

Record-tape

Still in weekend project mode

The idea of this project is to record operations on a model and then be able to replay them to check if changes have broke something.

First generate a operation log

var TestModel = Backbone.Model.extend(TestModelConf)
var test = new TestModel()
var recordTape = new RecordTape(TestModel, 'fetch')

recordTape.track()
test.fetch()			
test.fetch()

var operationDump = recordTape.getLog()
// Save operations log somewhere

Then replay the operations log

// Load operation log from somewhere
var TestModel = Backbone.Model.extend(TestModelConf)
var recordTape = new RecordTape(TestModel, 'fetch')

recordTape.loadLog(operationLog)
recordTape.run()

Readme

Keywords

none

Package Sidebar

Install

npm i record-tape

Weekly Downloads

4

Version

0.1.0

License

ISC

Last publish

Collaborators

  • siedrix