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

Mocha.js Engine Support #115

Closed arjansingh closed 11 years ago

arjansingh commented 11 years ago

Refactored the way engines are handled and rebuilt the Mocha Engine.

This branch lets you run mocha.js tests without having the cross browser origin issues that come with linking directly to raw.github.com. Instead I leverage the fact that chai.js and mocha.js are required modules, and include the code via the node_modules directory.

I had to refactor how engines export seed and test runner data as well. Instead of reading the entire file, I wrapped the exportable code in a closure and export it. This gives you flexibility to do more processing and curating of any engine code.

We really should think about using browserify for the engine code. It would greatly simplify the program logic itself.

arjansingh commented 11 years ago

We don't have to pull it into master directly. I'm in favor of creating feature branch.