Skip to content
geoffreymuchai edited this page Jun 23, 2011 · 4 revisions

Test Development Introduction

The grails plugins that are being used for test development are:

  • spock

  • geb

  • code-coverage

# Points to consider when creating new tests

  • Tests should be named according to the functionality that they are testing.

  • Each test case should test one functionality instead of nesting similar functionality tests within one test.

  • Setup and cleanup of tests should be done on a global scope instead of inside each test unless it is absolutely necessary.

  • Test variables should be assigned sensible and descriptive names to enhance code quality.

  • Tests created should also be listed against the stories they are associated with.

  • Tests which lie outside the scope of a story should not be written unless there is a substantial reason to do so

Clone this wiki locally