nathanboktae / mocha-phantomjs

:coffee: :ghost: Run client-side mocha tests in the command line through phantomjs
MIT License
954 stars 112 forks source link

Support screenshots #165

Closed raimohanska closed 10 years ago

raimohanska commented 10 years ago

Related to #130, now you can take screenshots in your tests.

See the updated README.md for details.

nathanboktae commented 10 years ago

Can you add a test too? thanks. Take a look at some of the --file tests that look for existence of a file if you need help.

raimohanska commented 10 years ago

Hi, I'll definitely simplify the impl and add a test as soon as I get a suitable timeslot for that. Thanks for timely response!

raimohanska commented 10 years ago

There you go! I added a simple test for the existence of the expected screenshot file. After test, the file is deleted.

nathanboktae commented 10 years ago

Thanks for the contribution!

raimohanska commented 10 years ago

You're very welcome. Thanks for your good work on mocha-phantomjs!

metaskills commented 10 years ago

Love this feature, awesome work y'all!

metaskills commented 10 years ago

I just published and tagged v3.5.2.