Hi everyone,The Cucumber-Spring module in cucumber-JVM is pretty broken. I broke it a while back by merging in patches without understanding what the code was doing. This module doesn't have good enough tests to detect regressions, and I personally don't have enough Spring-fu to correct what I've done, without reverting back to a rather old version of the codebase.My limited understanding of what's broken:* Transactions* A context config must be specified for each glue class
If you know Spring and want to help out, please fill in your availability so we can pick a couple of time slots to discuss/hack together online.--------> http://whenisgood.net/ed7cw9g <--------The upcoming Cucumber-JVM book will have a chapter about Spring, and if you help fix any of the bugs in Cucumber-Spring we'll give you due credit in the book!--------> http://whenisgood.net/ed7cw9g <--------Cheers,Aslak
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 6 May 2014 10:05, aslak hellesoy <aslak.h...@gmail.com> wrote:
Hi everyone,The Cucumber-Spring module in cucumber-JVM is pretty broken. I broke it a while back by merging in patches without understanding what the code was doing. This module doesn't have good enough tests to detect regressions, and I personally don't have enough Spring-fu to correct what I've done, without reverting back to a rather old version of the codebase.My limited understanding of what's broken:* Transactions* A context config must be specified for each glue classI genuinely want to enquire why this is wrong.I ask as when creating Spring integration tests Spring will, given an @ConfigurationContext, load it's context from a beans xml file who's name is based on that of the class executing the tests.
I can understand some people would not naturally expect this, but it helps ensure each class runs in it's own very limited context, exercising only the components deemed needed by the author. It crosses my mind that ducating people to this matter with Cucumber may be the more correct way forward.
@ContextConfiguration annotations), and therefore the SpringTransactionHooks class cannot access the PlatformTransactionManager.
Shouldn't the context configuration be defined in the @Options though? Defining it in the the StepDefs file seems like an overkill. Similarly, when you create a spring integration test the context is defined in the _Test class and not in every helper class that the Test class uses.
On 6 May 2014 13:45, Paolo Ambrosio <pa...@ambrosio.name> wrote:
On Tue, May 6, 2014 at 10:27 AM, James Green <james.m...@gmail.com> wrote:
> On 6 May 2014 10:05, aslak hellesoy <aslak.h...@gmail.com> wrote:
>>
>> Hi everyone,
>>
>> The Cucumber-Spring module in cucumber-JVM is pretty broken. I broke it a
>> while back by merging in patches without understanding what the code was
>> doing. This module doesn't have good enough tests to detect regressions, and
>> I personally don't have enough Spring-fu to correct what I've done, without
>> reverting back to a rather old version of the codebase.
>>
>> My limited understanding of what's broken:
>>
>> * Transactions
>> * A context config must be specified for each glue class
On 6 May 2014 11:18, Miguel Almeida <migueld...@gmail.com> wrote:
Shouldn't the context configuration be defined in the @Options though? Defining it in the the StepDefs file seems like an overkill. Similarly, when you create a spring integration test the context is defined in the _Test class and not in every helper class that the Test class uses.
Indeed if the context can be configured by the Runner class that makes sense. So what is suggested is that for each context desired, create a Runner configured with that context. Each Runner will always run the step definitions when required just in their own contexts. Thus is makes sense for the Runner to also point at a possibly limited set of feature files.