Hardy
Hardy copied to clipboard
getting started
I'm having trouble getting started with hardy. I followed all the steps here http://hardy.io/getting-started.html but when i try and run the example test i just see a blank firefox window and this output in the console.
$ hardy .
Hardy v1.1.0
INFO Loading browser firefox
.F
INFO Shutting down browser
firefox success
am i missing something?
Same error on ubuntu
Test with phantomjs "hardy --browser=phantomjs ."
I'm getting that result with hardy --browser=phantomjs .
as well.
Same issue as OP, but not when using PhantomJS:
I'm also seeing the same issue. Running OS X Mavericks, node 0.10.24. Rolling back to hardy 1.0.1 did not make a difference, the error persists.
Same issue here, with firefox,phantomjs and chrome
Also having this issue with Firefox.
Is everyone still having this issue? I just set up via the Getting Started, and I'm getting the same thing. I'm pretty sure this has something to do with the Firefox drivers, because when I run hardy --browser=phantomjs,chrome .
I get results from the tests.
At the moment only phantomjs is really working for me.
same here. Works with phantomJS and Chrome (+chromedriver) but fails with Firefox (version 31)
@pjkix Turns out that in any browser other than firefox, this happens if there is any error in your .feature file. For example, if you mentioned a wrong css property. In my case I was measuring "font-color" instead of "color". Seems like it eats up the error returned by cucumber.js and returns a success message. Running cucumber manually helped finding out the error:
cucumber.js -f pretty -r selectors.js -r /path/to/localnpminstall/node_modules/hardy/features/step_definitions --browser=phantomjs test.feature