unreleased (source code)
- ...
23th June 2012 (source code)
-
removed automatic transaction rollback, see this blog for more. The short version is that it works only in limited situations (like integration test mode). We have to handle this ourself via
Before/After
hooks (or thehooks
configuration). -
enable grails integration test mode with some simple configuration instead of hand rolling a
Before/After
hook pair. Put the following code into a cucumber groovy script (like env.groovy) to enable the grails integration test features.hooks { // examples: transaction () // for all cucumber features/scenarios transaction ("@i9n") // only for features/scenarios tagged with "@i9n" }
The
transaction
parameters will be passed as tags to a pair of cucumberBefore
&After
hooks. That means you can use the same tag syntax you would use for the cucumber hooks. -
set tags on the command line. If the command line contains
:cucumber
,@tag
parameters are evaluated to filter execution of features or scenarios. Standard cucumber syntax applies without the--tags
option keyword. Setting tags on the comand line will overwriteCucumberConfig.groovy
.Example:
grails test-app :cucumber @foo,~@bar @zap
-
improved reporting, the plugin no longer report a failing step as a failing test. It created quite confusing test reports.
3rd May 2012 (source code)
- automatically rollback transaction, it is no longer necessary to create a before or after hook to
clean up the database. It can be disabled by adding the cucumber tag
@notxn
to features or scenarios.
29th April 2012 (source code)
- cucumber features & scenarios are correctly displayed in xml & html reports
- scenarios are properly reported by name and not as "TestCase: unknown"
- modified plugin formatter to report an
UndefinedStepException
so IntelliJs test listener does not crash (it does not implement all overloads of GrailsTestEventPublisher.testFailure). - updated to cucumber-jvm 1.0.4
16th April 2012 (source code)
- configuration via
grails-app/conf/CucumberConfig.groovy
, see the plugin guide - changed cucumber default path from
test/cucumber
totest/functional
- updated to cucumber-jvm 1.0.2
- cucumber-jvm is no longer embedded, it will be picked up by the usual grails dependency resolution
- started plugin guide
never released (source code)
4th March 2012 (source code)
- fixed formatter crash when a before hook throws
- updated to cucumber-jvm api RC21
- updated embedded cucumber-jvm to RC21
10th January 2012 (source code)
- fixed grails 2.0.0 incompatibility
8th January 2012 (source code)
- do not export the plugins test dependencies
7th January 2012 (source code)
- first usable version
- use geb to implement steps
- call domain class foo from steps