lefnire/habitrpg — pull request #699 by yangit (2013-03-22 04:23:43+00:00)
Title: Develop

I decided to create another test2/ folder.
It has one async test.
Things to notice:
1) It is a bit verbose :)
2) It needs to be refactored using "async" library. Somehow casper.then() is introducing bugs so I'm not going to use it until I figure out why exactly. Leave it as it is, I'll refactor as it grows.
3) It does not use any timeouts along the way, which is a good thing.
4) It runs consistently on my side (i.e. always passes).
5) So far phantomJS is given new userID every time so app.reset,app.revive is not necessary. I'll add it later.

To run the tests run from terminal:
cd test2
casperjs test ./casper

This way we can run all test suites located in casper folder.