urubatan / easybtest
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Tree:
55d1e23
commit 55d1e23d63d5e54f84f09142fc37a166cad67684
tree 169b271c66a97946ce3d394a2dd7b27b22e38054
parent 4876b376aa79bc1d85b706d12f53dd95e9eea5a4
tree 169b271c66a97946ce3d394a2dd7b27b22e38054
parent 4876b376aa79bc1d85b706d12f53dd95e9eea5a4
README
This plugin enables the use of Behavior Driven Development to test your Grails Application,
The library behind this is easyb, easyb is a BDD library written in groovy.
For example, you can test your app like this:
given "an invalid zip code", {
invalidzipcode = "221o1"
}
and "given the zipcodevalidator is initialized", {
zipvalidate = new ZipCodeValidator()
}
when "validate is invoked with the invalid zip code", {
value = zipvalidate.validate(invalidzipcode)
}
then "the validator instance should return false", {
value.shouldBe false
}

