nathanboktae / mocha-phantomjs

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

run all test inside test directory from single command 'npm test' #122

Closed ankitraturi closed 10 years ago

ankitraturi commented 10 years ago

I followed the document and write some tests. Now in test folder I have more than one test.html files. if I run single test file it is OK, but now I want all files to run. So I want to know that how to address all html files inside package.json? I have also posted a question here: http://stackoverflow.com/q/21904120/3115091

I did not get any response there so I am posting here. Please help me with it.

nathanboktae commented 10 years ago

Please see #103 , but basically

find test -name "*.html" -exec mocha-phantomjs {} \;