Closed alexgorbatchev closed 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.
Just noticed there aren't any tests. How do you make sure it works when you are making changes?