smfoote / tornado

HTML templates with asynchronous rendering, built with JavaScript.
http://smfoote.github.io/tornado/
Apache License 2.0
8 stars 3 forks source link

Use a proper testing framework. #34

Open smfoote opened 9 years ago

smfoote commented 9 years ago

It would be a shame to have to rewrite all of the tests, so hopefully that's not necessary, but we should use an established test runner (along with the compareNode code) for testing.

prashn64 commented 9 years ago

I can look into this for the coming week.

smfoote commented 9 years ago

According to this article about promises in the "Advanced mistake 2" section, Mocha and Chai are good for testing APIs with promises.

jimmyhchan commented 9 years ago

are the tests currently broken?

smfoote commented 9 years ago

The tests should be working now. The instructions in README.md should work. However, I put a display: none; on passing tests so it was easier to find test failures; perhaps that is why it appears that the tests aren't running?

smfoote commented 9 years ago

^ further proof that we need a real testing framework.

smfoote commented 8 years ago

@prashn64 is this done?