Great stuff. Wish I could have been there, but I was on baby sitting duties :-(
Keep it up
On Fri, Oct 3, 2008 at 11:29 AM, j pimmel <
frankly.watson@...> wrote:
> All
>
> Following from the London GGUG talk we gave on Wednesday it was time to
> provide the widercommunity some visibility on the reference testing
> application which showcases a full running application with some sample user
> stories. In this app you will find examples showing
>
> unit tests (defined against the new testing plugin, 0.3)
>
> domain/command objects
> controllers
> taglib
> plain old groovy objects
> JSUnit
> EasyB
>
> integration tests
>
> services
>
> acceptance testing
>
> selenium
>
> You can checkout the project at
>
https://svn.energizedwork.com/skunkworks/grails/WineLovers>
> inside of which the presentation we made is provided and can be accessed
> directly at
>
https://svn.energizedwork.com/skunkworks/grails/WineLovers/test/resources/grails-effective-testing-talk.ppt>
> Sadly the video of the presentation has not been digitized following some
> technical snafu causing the loss of sound on the recording with the Skills
> Matter equipment :(
>
> Running the application
> The app ships *without* any of the required plugins installed so to enable
> the most very basic test run (test-app) you will at least need the
> testing-plugin developed by Peter Ledbrook @ G2One. The latest 0.3 version
> presently available will need to be installed, which simply involves issuing
> command
>
> grails install-plugin testing
>
> in the root of the project folder
> For the remaining testing types the installation of the plugins should not
> interfere with the existing reference test examples .. they are already
> created and checked into the correct locations for them to run following a
> plugin install
> JSUnit
> Again, you need to install the plugin to run the test examples for
> Javascript testing
>
> grails install-plugin jsunit
>
> For further information on how to run the tests locally follow the grails
> page: the main point is you need to provide a path (and on windows you will
> need to give 8.3 short names, since spaces aren't handled) to Firefox
>
http://grails.org/jsUnit+plugin>
http://www.javathinking.com/?p=123>
> Selenium
> Install the plugin
>
> grails install-plugin selenium
>
> Then run-app in one console and in another
>
> grails run-selenium ${path-to-browser}
>
> EasyB
> By far the most experimental part of the project is the integration of EasyB
> BDD for Groovy with Grails.
> Should you wish to explore this you will have to install the plugin for this
> directly as a zip from
>
http://code.google.com/p/easyb/source/browse/trunk/easyb-plugins/grails-plugin/grails-easybtest-0.1.zip>
> The examples which are shown test (at a unit level)
>
> domain
> plain old groovy
>
> and integration wise
>
> controller
> service
>
> These are liable to be changed to use the testing plugin example also at
> some stage in the coming two weeks.
> Outstanding
> I have yet to complete the examples for webtest, but will aim to do so a
> soon as its possible.
> Feedback
> I would welcome any feedback and any examples people would like added or
> updated, or suggestions for more examples/plugins etc.
> The project is provided as-is with no warranty or guarantees! I strive to
> make sure it is not broken or with issues, but as with all part time
> projects you should be aware that sometimes things go wrong.
> When making feedback it may be preferable to contact me directly unless the
> material under discussion has relevance to the list.
> When reporting issues please outline
>
> What plugins you have installed
> What piece of code is at issue
> Steps you undertook to create the issue
> (if available) your code fix that you found resolved it
>
> Hope this if of use to people
> Cheers
--
Graeme Rocher
Grails Project Lead
G2One, Inc. Chief Technology Officer
http://www.g2one.com---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email