[rspec-users] [cucumber] Cucumber and CI
hayafirst at gmail.com
Sun Feb 22 19:09:53 EST 2009
Wait for an hour before I can checkin something is still too long for me.
I'd like to checkin every couple minutes most of time.
But I think to make each step just pending first and then make it green when
I finish implementation for the step makes sense. I probably will still use
unit tests passing as checkin points.
On Sun, Feb 22, 2009 at 3:36 PM, aslak hellesoy <aslak.hellesoy at gmail.com>wrote:
> On Sun, Feb 22, 2009 at 8:47 PM, Yi Wen <hayafirst at gmail.com> wrote:
> > The rhythm for wrking with cucumber advertised by http://cukes.info/ is
> > write tests that fails first, then code that fixes it. Now my question
> > what is the implication when combine this with Continuous Integration?
> * Nobody checks in code with failing tests (cucumber features, rspec
> tests, anything else).
> * If someone accidentally does, CI will run all tests and tell the team.
> > We all know when we do TDD/BDD in unit level, one test can be fixed
> > quick in a coupe minutes and we can check in and kick off a build. It is
> > ideal scene for doing CI: frequent checkin and fast feedback on build
> > results.
> > Cucumber, as far as my understanding goes, works on feature level. It
> > take people days to finish a cucumber feature. In the meantime, the
> > test remains broken. What do we do then? We cannot check in any code
> A feature typically consists of several scenarios. You don't have to
> implement all scenarios before you commit. You don't have to write all
> scenarios when you start working on a feature. I recommend you never
> have more than one yellow scenario at a time.
> The same goes for scenarios, which consist of several steps.
> I recommend you commit every time you have made a step go from yellow
> to green (via red).
> This way, many successive commits will gradually build the whole feature.
> In my experience, getting a step to go from yellow to green rarely
> takes more than an hour (usually less).
> Is there anything preventing you from working this way?
> > that'll break the build. So we can only checkin code after several days?
> > doesn't sound right to me. Any takes on this issue? Thanks in advance.
> > Yi
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> Aslak (::)
> rspec-users mailing list
> rspec-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users