YahooArchive / arrow

FE Test framework designed to promote TDD
http://yahoo.github.io/arrow/arrow_intro.html
BSD 3-Clause "New" or "Revised" License
55 stars 59 forks source link

Added start/end events for Arrow #183

Open sudocode opened 10 years ago

sudocode commented 10 years ago

This will allow a developer to implement hooks for setting up and tearing down resources (such as VM allocation, etc).

var arrow = new Arrow;
arrow.on('start', function() { alert('started'); });
arrow.on('end', function() { alert('ended'); });
arrow.run();
pranavparikh commented 10 years ago

@sudocode , Thanks for the PR. How do you plan to implement hooks ? Do you have an example ?

pranavparikh commented 10 years ago

@sudocode As we discussed last, the idea is to allow using Arrow as a library. I'm will test it a bit before taking in the PR.