detro/ghostdriver — pull request #32 by MattiSG (2012-06-01 13:58:29+00:00)
Title: Improved examples architecture, instructions and reliability

Hi Ivan,

I quite heavily refactored the way the examples are run.

The new architecture is much more extensible and reliable, which means they are easier to read for newcomers, it will be much simpler to create new demos and, more importantly, to collaborate as the executable paths are now extracted from the code.

The README was corrected and updated, so the example command now works.

The architecture is as follows:
- abstract `WebDriverTester` superclass, from which all test cases should inherit;
- `GoogleCheese` and `GoogleCheeseServerOnly` (renamed) only contain the particular crawling logic, as will all future test cases;
- all setup (paths, supported drivers) is externalized in properties lists that lie in the `config` folder. See the `path.properties.defaults` file for details on how paths may be changed on each developer's machine without impacting the codebase.

Best regards,
Matti