chenglou / node-huxley

Codeless front-end testing.
MIT License
361 stars 29 forks source link

Stop going to foo.com at the end of recording tests #74

Open rsleggett opened 10 years ago

rsleggett commented 10 years ago

When no tests are specified or at the end of a recording session the browser will try to go to "foo.com" - this is blocked by my antivirus for containing a Trojan which isn't ideal

I'm guessing this is because of the defaults seen here: https://github.com/chenglou/node-huxley/search?utf8=%E2%9C%93&q=foo&type=Code

I'm not sure how to stop this behaviour.

chenglou commented 10 years ago

Those are my test files. You probably misspecified the glob patterns? **/* will recursively search for every Huxleyfile.json. In this case the pattern probably went into node_modules/huxley/ too, lol.

rsleggett commented 10 years ago

All I did was type "hux --record" without having created a huxleyfile.json. is that the the default pattern?

chenglou commented 10 years ago

You do need the Huxleyfile.json. Or else it has no idea where to save the recorded json file (whose name is the task name specified in Huxleyfile).

This isn't normal though. When you try hux --record without a Huxleyfile it should output "No Huxleyfile found". I just tested that.