AriaMinaei / pretty-error

See node.js errors with less clutter
MIT License
1.52k stars 49 forks source link

Tests? #5

Closed alexgorbatchev closed 10 years ago

alexgorbatchev commented 10 years ago

Just noticed there aren't any tests. How do you make sure it works when you are making changes?

AriaMinaei commented 10 years ago

There are a bunch of test cases in scripts/coffee/tests . ErrorParser has strict tests, but for PrettyError itself the test cases just render a bunch of errors, and they have to look right. With RemderKid being in beta, it's a bit too soon to test the output character by character. (RenderKid itself has a good number of test cases though)

Anyway, for now, please install jitter to compile and run the tests, or you may have to call cake test for every change.

npm install -g jitter
cd path/to/pretty-error/scripts
jitter coffee js js/tests -b

It's way overdue, but I should put a Gruntfile or some kind of build system in the code :)

Sent from my iPad

On May 20, 2014, at 11:16 PM, Alex Gorbatchev notifications@github.com wrote:

Just noticed there aren't any tests. How do you make sure it works when you are making changes?

— Reply to this email directly or view it on GitHub.