<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cucumber on Medium]]></title>
        <description><![CDATA[Stories by Cucumber on Medium]]></description>
        <link>https://medium.com/@cucumberbdd?source=rss-dd5bd70a2b67------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Qge8hlHztdqCJT_veVhn-Q.png</url>
            <title>Stories by Cucumber on Medium</title>
            <link>https://medium.com/@cucumberbdd?source=rss-dd5bd70a2b67------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:44:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cucumberbdd/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cucumber — A 10-year love affair]]></title>
            <link>https://medium.com/@cucumberbdd/cucumber-a-10-year-love-affair-2a856211ece3?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a856211ece3</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Thu, 02 Aug 2018 13:12:48 GMT</pubDate>
            <atom:updated>2018-08-02T13:12:48.200Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://twitter.com/mattwynne"><em>Matt Wynne</em></a><em>, CEO of Cucumber</em></p><p>On a hot morning in August 2008, I rang the doorbell and climbed the stairs to the tiny, crowded office of Songkick.com in a two-bed apartment over Spitalfields market, London. I was beginning the first day of a job that would change my life.</p><p>Despite a pay-cut to around 50% compared to my previous role, I was excited to take the job because Songkick were one of a handful of companies in London at the time using the Ruby programming language. I wanted to become part of the Ruby community because of <a href="http://rspec.info/?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">RSpec</a>.</p><p>RSpec was made by a group of people including <a href="https://twitter.com/srbaker?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">Steven Baker</a>, <a href="https://twitter.com/dchelimsky?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">David Chelimsky</a>, <a href="https://twitter.com/dastels?lang=en&amp;utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">Dave Astels</a> and <a href="https://twitter.com/aslak_hellesoy?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">Aslak Hellesøy</a> who were trying to bridge the communication gap between business and technology with readable automated tests. Aslak had recently forked an experimental project called the <a href="https://github.com/dchelimsky/rspec-stories?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">RSpec Story Runner</a> into a new project called Cucumber, and I was eager to try it.</p><p>So I became one of Cucumber’s first users. By January 2012, with Cucumber close to 2 million downloads, Aslak and I had published <a href="https://pragprog.com/book/hwcuc2/the-cucumber-book-second-edition?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+"><em>The Cucumber Book</em></a>, drawing on a great deal of the experiences I’d had at Songkick.</p><p>In these ten years, Cucumber has been downloaded almost 30 million times.</p><p>We started Cucumber as a labour of love. We never expected it to become this popular. It seems the problem of effective collaboration between business and technology is pretty universal, and the solution we came up with resonates with a lot of people. Cool!</p><p>We started Cucumber Ltd with a <a href="https://cucumber.io/blog/2014/04/16/cucumber-limited?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">simple business plan</a>: create a virtuous cycle by selling services and products to the growing community of Cucumber and BDD practitioners, then use that income to support and improve the open source tools.</p><p>Like any tool, we see Cucumber <a href="https://cucumber.io/blog/2014/03/03/the-worlds-most-misunderstood-collaboration-tool?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">being misused</a> <a href="https://vimeo.com/143941147?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">all over</a> <a href="http://www.thinkcode.se/blog/2016/06/22/cucumber-antipatterns?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">the place</a>. And we want to help.</p><p>We’re on a mission to inspire meaningful and effective collaboration in every software delivery organisation. We’ve been lucky enough, through our training and consulting services, to have been given the opportunity to <a href="https://cucumber.io/blog/2017/05/26/unconference-the-rocket-fuel-in-your-agile-transformation?utm_source=drip&amp;utm_medium=email&amp;utm_campaign=Cucumber+-+A+10+year+love+affair.+">help many organisations</a> on that journey, and we’re getting pretty good at it if I do say so myself.</p><p>It’s a privilege to be able to make a living doing this and I want to thank you for being there with us.</p><p>Here’s to another ten years!</p><p>Matt</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a856211ece3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dyson and BDD]]></title>
            <link>https://medium.com/@cucumberbdd/dyson-and-bdd-30b6753105de?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/30b6753105de</guid>
            <category><![CDATA[tdd]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Tue, 08 May 2018 07:40:51 GMT</pubDate>
            <atom:updated>2018-05-08T07:40:51.356Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dyson and BDD: one team’s path to building the right thing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ueQW0j6IUv08VnM2kj24WQ.jpeg" /></figure><p><em>This is a guest post from Tom Hall, Digital Quality Lead at Dyson</em></p><p>When Dyson’s digital team decided to bring Behaviour-Driven Development into our ways of working, it was to address two problems that were severely hampering our ability to deliver working software:</p><ul><li>Misunderstood requirements</li><li>The amount of time it took to manually regression test every release</li></ul><p>Our first step was to get the experts in to give the team an introduction to BDD. The Cucumber team delivered an excellent three day BDD Kickstart training course, teaching the whole team the collaborative practices used in BDD, and then getting the technical team (developers and testers) hands-on using SpecFlow to write requirements as Gherkin scenarios and write code to implement the scenarios as automated tests.</p><p>We viewed it as vitally important that all those involved in our adoption of BDD were there together as a group, to gain a shared understanding of what it is and the benefits it can bring.</p><p>We now have a suite of modular tests, rather than the lengthy end-to-end tests we previously ran manually, which saves us tens of man-hours for every release and has greatly reduced the length of our test cycles.</p><p>At the same time as automating our regression testing, we started using a BDD approach for new features for our ecommerce websites. At first this proved difficult to work in to our pipeline, until we also started using an agile development approach, which enabled us to consistently express requirements as user stories and build example mapping in to our backlog refinement.</p><p>We made a commitment that all user stories would be “example mapped” at the start of a sprint and the product owner would be included in those discussions. Through collaborating as a team on the detail of what each story and its acceptance criteria mean, mapping out the permutations of each rule and raising any doubts, everyone in the team has a clear understanding of the story before development starts.</p><p>By including successful unit testing and acceptance testing in the definition of done, we have built automated feedback loops within the continuous integration process, which inform us very quickly if a change has broken the build.</p><p>The strongest testaments of the value BDD has brought are the quality of the developed product and the satisfaction of the product owner. Following launch a couple of weeks ago, no changes to the application have been requested by the product owner and they have spoken of how delighted they are with what has been developed. How often does that happen with a new IT system?</p><p>BDD has enabled the team to validate with the product owner that we understand the full meaning of requirements, while demos of each feature within sprints has ensured we are building the right solution. Consistently using this approach throughout product development gave the team and the product owner confidence at the point of launch, without the need for a lengthy User Acceptance Test phase, that we had built the right thing and it was working as expected.</p><p>Now that the Award application is live we are in a position, with comprehensive automated testing coverage built in, to release new features to production more frequently than has ever been possible at Dyson.</p><p><em>Cucumber run on-site and public classes for teams who want to truly benefit from BDD. Here are a few upcoming BDD Kickstart classes in 2018. For a full list, visit our </em><a href="https://cucumber.io/events"><em>events page.</em></a></p><ul><li><a href="https://cucumber.io/events/bdd-kickstart-perth-2018">Perth, AU</a> — May 24th-25th</li><li><a href="https://cucumber.io/events/bdd-kickstart-chicago-2018">Chicago</a> — June 7th-8th</li><li><a href="https://cucumber.io/events/bdd-kickstart-london-18">London</a> — Late June</li><li><a href="https://cucumber.io/events/bdd-kickstart-san-francisco-18">San Francisco</a> — August 14th-15th</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30b6753105de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five roles in a healthy mob·Cucumber]]></title>
            <link>https://medium.com/@cucumberbdd/five-roles-in-a-healthy-mob-cucumber-bc14180c7619?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc14180c7619</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mob-programming]]></category>
            <category><![CDATA[extreme-programming]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[cucumber]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Mon, 16 Oct 2017 00:00:00 GMT</pubDate>
            <atom:updated>2017-11-28T11:55:47.903Z</atom:updated>
            <content:encoded><![CDATA[<p>The Cucumber Pro product team has been practicing mob programming for almost two years now. We’ve had periods where we drifted back to working in pairs, but for the last nine months mobbing has explicitly been our default behaviour as a team.</p><p>I think we’ve learned a lot from that, and I want to share some patterns I’ve noticed. As you read these thoughts, you should be aware that our mob is almost exclusively remote. We do meet up about once a month, but we tend to spend that time around a whiteboard rather than a keyboard.</p><p>Most of the literature I’ve read about mobbing describes two roles: driver and navigator. I’m going to describe how I see these roles, and add a few more I’ve noticed us use when things are working well.</p><p>Let’s start with those two familiar ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*lnlLx4QFf7mMLiwG.png" /></figure><h3>The navigator</h3><p>The navigator understands where the group have decided to aim for, and has a plan for how to get there. In a healthy mob, the rest of the group will trust them in that role, and save any questions or challenges for a later moment.</p><p>It’s important that the navigator is able to communicate intent to the driver, rather than treating them like Siri and just dictating the code. The driver and navigator need to work together to bring this understanding into the open, and this communication dynamic between driver and navigator is important for maintaining energy levels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*wpuNYej36crAFFe8.png" /></figure><h3>The driver</h3><p>The driver is the conduit, the lighting-rod for everyone’s ideas. They help to tease out the ideas from the navigator’s head, and move the codebase forward. It helps if the driver doesn’t think too hard, and mostly works on implementing the next move agreed with the navigator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Z_53-0VxQgImvv62.png" /></figure><h3>The facilitator</h3><p>While the driver and navigator focus on solving the problem at hand, the facilitator can observe and manage the group’s dynamic and rhythm. When the tests are passing, this is the person who remembers to ask everyone: “Are we happy with the code as it is? Can anyone suggest a refactoring at this point?”</p><p>This is also the person who remembers to hold the team to any rules or agreements they’ve made. For example, asking someone who’s noticed a minor syntax improvement to hold that thought and wait until the tests are passing.</p><p>They can also monitor the group for kindness and respect. Sometimes the problems we face as a mob, especially when diagnosing a problem nobody understands, can cause anxiety. Under these circumstances, the facilitator’s role is to notice this and guide the group back to a kind and respectful dynamic.</p><p>On our remote mob, the facilitator can also play a great role in live-Slacking (or whatever is your insta-message tool of choice) the intent, activity and decisions of the mob. By communicating like this, other team members who join the mob later can more easily pick up the context, or even offer suggestions or advice from afar, without interrupting the flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*PxB8RvdFH9d9h1_0.png" /></figure><h3>The scout</h3><p>Mobs work best when they know what to do, and are creatively, synergistically generating solutions for how to do it.</p><p>When the mob gets stuck, it’s often due to a lack of information. We can’t decide whether to go one route or the other, because we haven’t tried either of them yet and don’t know enough about the implications of that choice.</p><p>Sometimes we see a fork in the road and, although what’s down the fork looks attractive, we don’t have confidence about how long it will take us to go that route. So we stick to the routes we know. This might be a missed opportunity.</p><p>The scout is someone who loves to explore. They look at the territory ahead and anticipate challenges and puzzles the mob might face soon, and go off and gather information: they read documentation, they write spikes, they talk to customers, they draw wireframes.</p><p>Scouting can be done by someone who’s present in the mob, but has used <a href="https://en.wikipedia.org/wiki/Open_Space_Technology#Law_of_two_feet">the law of two feet</a> to make the best use of their time. Or, they check out of the mob for a time and explicitly go and focus on that task. Or, they scout in solo time. Scouts are the pioneers in Simon Stewart’s <a href="http://blog.rocketpoweredjetpants.com/2014/10/pioneers-and-settlers.html">pioneers and settlers model</a>.</p><p>Scouting is work people can sometimes feel guilty about, but it’s vital for keeping the mob flowing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*KlsnGOc2uhQZSp0W.jpg" /></figure><h3>The housekeeper</h3><p>One of our practices is to note down TODOs in our code during a mobbing session where we know something needs refactoring, but we want to stay focussed on getting to green first. We don’t always get time to come back to these TODOs during that session.</p><p>The Housekeeper is a bit like the Scout, in that they spend time working around the mob, keeping the flow going by tidying up these little bits of detritus flung out of the mob’s productive core. While the scout looks ahead and breaks down new territory, the housekeeper focusses on making the existing code more habitable, easier to navigate and use.</p><p>Housekeepers watch the mob and notice places where the code is impeding the flow. They think about solutions to that and suggest or make refactorings to ease these friction points. Housekeepers are the settlers in Simon Stewart’s <a href="http://blog.rocketpoweredjetpants.com/2014/10/pioneers-and-settlers.html">pioneers and settlers model</a>.</p><p>Of course it’s important that the mob pays attention to housekeeping, and doesn’t just act like a spoilt teenager leaving mess for someone else to tidy up. Yet this is true of all of these roles: from time to time each of us will wear these hats.</p><p>By acknowledging these roles explicitly I think we can play to people’s strengths and celebrate how our individuality can best contribute to the overall effectiveness and flow of the mob.</p><p>What do you think of these roles? Did I miss any?</p><p><em>Originally published at </em><a href="https://cucumber.io/blog/2017/10/16/five-roles-in-a-healthy-mob"><em>cucumber.io</em></a><em> on October 16, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc14180c7619" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Announcing Cucumber Expressions]]></title>
            <link>https://medium.com/@cucumberbdd/announcing-cucumber-expressions-dcfbd6039fa4?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcfbd6039fa4</guid>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[tdd]]></category>
            <category><![CDATA[regex]]></category>
            <category><![CDATA[cucumber]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Tue, 15 Aug 2017 14:53:16 GMT</pubDate>
            <atom:updated>2017-08-15T14:53:16.916Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I want to share with you a very interesting new feature we’ve been working on in the past year. Cucumber Expressions!</p><p>Last year about 15 Cucumber contributors spent a weekend together in a big house in Copenhagen. Some of use started designing a new expression language. We wanted to replace Regular Expressions with something more user-friendly, but also more powerful.</p><p>Cucumber Expressions were born. It’s a simple expression language for matching text (just like Regular Expressions), but the syntax is optimised for legibility rather than flexibility and control. In the context of Cucumber this tradeoff makes a lot of sense. We don’t need all the power of Regular Expressions, and legibility is more important.</p><p>Regular Expressions use capture groups to extract pieces of text, and Cucumber Expressions use <em>output parameters</em> to do the same thing. An output parameter is simply a name between curly braces, for example:</p><pre>Given &quot;{flight} on {time} had {int} passengers&quot; do |flight, time, passenger_count|<br>end</pre><p>This Cucumber Expression matches the following text (from a Given step in a Gherkin document):</p><pre>Given LHR-OSL on 22 June 2017 at 13:40 had 48 passengers</pre><p>The first time this is matched, the user will see an error saying:</p><pre>The parameter type &quot;flight&quot; is not defined.</pre><p>So we define a <em>parameter type</em> for <em>flight</em>:</p><pre>ParameterType(<br>  name: &#39;flight&#39;,<br>  regexp: /([A-Z]{3})-([A-Z]{3})/,<br>  transformer: -&gt; (from, to) { Flight.new(from, to) }<br>)</pre><p>We also define the time parameter type. When we match now, the step definition will be passed three arguments: A Flight object, a Time object and an integer (Cucumber Expressions have built-in support for int, float, string and word). Cucumber Expressions has transformed the matches for us, using our own supplied parameter types.</p><p>This is similar to Cucumber’s old Transform feature, but with some significant improvements.</p><p>With Cucumber Expressions, the type name is explicit and visible in the expression itself. Furthermore, snippets for undefined steps take advantage of registered parameter types. If you have an undefined step with a piece of text that looks like a flight, Cucumber will suggest that you use {flight} in the step definition snippet. You&#39;ll be constantly reminded to use existing parameter types or encouraged to define new ones that are specific to your domain. This helps the team evolve a more consistent domain language. After all, Cucumber is about <a href="https://cucumber.io/blog/2014/03/03/the-worlds-most-misunderstood-collaboration-tool">communication</a>.</p><p>Regular Expression support isn’t going away. In fact, it ‘s been improved. If you use a regular expression with a capture group for integer — (\d+) - the captured string will be transformed to an integer before it&#39;s passed to the step definition. This is possible because of the built-in {int} parameter type.</p><p>Cucumber will no longer suggest Regular Expressions in snippets — that’s going to be Cucumber Expressions from now on.</p><p>Cucumber.js has had Cucumber Expressions for a few months already, and we’ve really enjoyed using them ourselves in Cucumber Pro. Cucumber-Ruby 3.0.0.pre.2 was released today, and it has Cucumber Expressions built-in as well. The Cucumber Expressions library has been implemented in Java, but Cucumber-JVM hasn’t been updated to use it yet. Please do get in touch if you want to help us make that happen. The source code for Cucumber Expressions is <a href="https://github.com/cucumber/cucumber/tree/master/cucumber-expressions">here</a>.</p><p>Try them out and let us know how you get on and how we can improve them!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcfbd6039fa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CukeUp London videos now available]]></title>
            <link>https://medium.com/@cucumberbdd/cukeup-london-videos-now-available-9e842bfded3a?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e842bfded3a</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[tdd]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agile-development]]></category>
            <category><![CDATA[bdd]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Tue, 08 Aug 2017 08:59:39 GMT</pubDate>
            <atom:updated>2017-08-08T08:59:39.883Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Qv4b0tCBXQKB1ytC.jpg" /></figure><p>Some exciting news.</p><p>All the talks from <a href="http://cukenfest.cucumber.io/video/">CukeUp London</a> are now on our website.</p><p>At the end of June under the bricked arches of London’s Village Underground, around 150 of us gathered together for a day of inspiring talks and discussions about building high-quality software.</p><p>Throughout the day we witnessed a series of tactical and informative talks from practitioners, business leaders and industry-renowned authors. Talks topics weren’t limited to just Cucumber and BDD, instead there was a broad focus on harnessing collaboration to build great software products.</p><p><a href="http://cukenfest.cucumber.io/video/">You can now watch the talks from CukeUp London.</a></p><p>Here are just a few talks you might be interested in:</p><p><strong>Shift Left. Sheetal Patel</strong> If your team are looking to adopt BDD practices, learn how corporate monolith The Vanguard Group started their journey towards BDD and are now reaping the benefits of their investment.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXAjkc28nUjY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXAjkc28nUjY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXAjkc28nUjY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c0e05b0dce57c6d3e361f5de4f955faa/href">https://medium.com/media/c0e05b0dce57c6d3e361f5de4f955faa/href</a></iframe><p><strong>Communities of Practice. Emily Webber</strong> Emily explains why a community of practice within a large organisation can be a game-changer when it comes to sharing ideas and fostering collaboration at scale.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfDIUyBKDmhA%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfDIUyBKDmhA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfDIUyBKDmhA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3443ce6918f258878a7aead8cf828777/href">https://medium.com/media/3443ce6918f258878a7aead8cf828777/href</a></iframe><p><strong>Having our cake and eating it. End-to-end function tests which can run in milliseconds. Nat Pryce.</strong></p><p>Nat Pryce gives a super practical rundown of how function tests can dramatically improve your codebase.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FFk4rCn4YLLU%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFk4rCn4YLLU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FFk4rCn4YLLU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed65ba6e89d9d48dfbb763a02518c0b7/href">https://medium.com/media/ed65ba6e89d9d48dfbb763a02518c0b7/href</a></iframe><p>Watch all the talks <a href="http://cukenfest.cucumber.io/video/">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e842bfded3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Space: Rocket Fuel for your Agile transformation]]></title>
            <link>https://medium.com/@cucumberbdd/open-space-rocket-fuel-for-your-agile-transformation-2a03a6ff1e52?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a03a6ff1e52</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[open-space]]></category>
            <category><![CDATA[unconference]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Mon, 17 Jul 2017 09:58:48 GMT</pubDate>
            <atom:updated>2017-11-15T10:58:09.906Z</atom:updated>
            <content:encoded><![CDATA[<p>I absolutely love unconferences.</p><p>Over the last couple of years, we’ve been privileged to be trusted by some of our best <a href="https://cucumber.io/training">consulting clients</a> to run unconferences events in their organisations. I’m now convinced that these events are crucial in powering the cultural shift to agile software development.</p><p>In this post I want give you a sense of what unconference is like and share some practical advice about how to run your own unconference event.</p><h3>What is unconference?</h3><p>Have you ever been to a conference, and discovered that your most enduring memory was not in one of the timetabled sessions, but in the hallway <em>in between</em> the sessions? You found yourself in a small group, all passionately interested in the topic of your conversation; great insights were shared.</p><p>Unconference is a meeting structure designed to deliberately harness this energy. Using a few simple rules, a large group of people self-organises a dynamic, evolving schedule that allows every individual to contribute and learn by following their own enthusiasms and interests.</p><p>To give you a flavour, here’s a video produced by our friends at <a href="https://www.liberty-it.co.uk/">Liberty IT</a> in Belfast, where we recently ran a two-day unconference for about 120 people:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F337ibHDA7gU%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D337ibHDA7gU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F337ibHDA7gU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/08b634a4e6067a4b8ac8a62a9842ea6a/href">https://medium.com/media/08b634a4e6067a4b8ac8a62a9842ea6a/href</a></iframe><p>The unconference format works at almost any scale, from a dozen people meeting for a half-day through to an entire division of hundreds of people organising a multi-day off-site.</p><h3>The rules</h3><p>The self-organisation of unconference needs some boundaries to work. These are often described as <em>five principles, and one law</em>. The five principles are:</p><ul><li><strong>Whoever comes are the right people</strong>. Whether you have 80 people at your session, or 8, don’t waste time wishing someone else was there. Those people are the people who care the most about this topic, so work with them. Even if you end up with nobody in your session, you’ll have some time to yourself to think about the topic and work on it without distraction.</li><li><strong>Whenever it starts is the right time</strong>. Spirit and creativity do not run on the clock.</li><li><strong>Where you are is the right place</strong>. Always be aware of what’s going on around you. Perhaps you meant to go to a session right now but you’re already in an interesting conversation where you are. Then stay where you are!</li><li><strong>When it’s over, it’s over</strong>. Don’t feel forced stick to the timetable — if the conversation or session has reached a natural conclusion ahead of schedule, use the law of two feet (see below) and go find somewhere else to contribute.</li><li><strong>Whatever happens is the only thing that could have — prepare to be surprised</strong>! Try not to fret about what might have been. Make the most of what’s happened, and expect that things will not go according to plan.</li></ul><p>The law is known as <strong>The law of two feet</strong></p><blockquote>If at any time, you don’t feel you’re learning or contributing anything, it’s your responsibility to use your two feet to take you somewhere else where you can.</blockquote><p>As a facilitator, you need to emphasise this element of personal responsibility. If each individual does their best to maximise their own learning and contribution, the overall event is bound to be a success.</p><h3>Tips for a facilitator</h3><p>Facilitating an unconference can be a wonderful experience, but it does require some careful preparation.</p><p>Although stating the rules is an important part of making an unconference event work, there are a few other fundamental tips for a facilitator to be aware of to make the event a success.</p><h3>Do the pre-work</h3><p>Before the event, prime the audience several times by email (or any other method at hand) to get them ready for what to expect. Do this by:</p><ul><li>Inviting people who wish to attend to make an ‘application’ by answering a series of topic-related questions.</li><li>Sending round information about the principles of unconference, and any quotes or other communications from previous events.</li><li>Sending round a <a href="http://agileforall.com/wp-content/uploads/2017/05/OpenSpaceSessionLeaderGuide.pdf">one-page session leader guide</a> with encouragement to lead a session.</li></ul><h3>Use a theme</h3><p>Having an ambitious or provocative framing question such as <em>“How can we make continuous delivery a reality in our organisation by 2018?”</em> helps people beforehand when thinking about proposing sessions, and also helps to keep the session topics somewhat coherent.</p><p>People will always have their off-topic axes to grind and that’s fine (after all, whoever comes are the right people) but having a stated theme will help to focus most of the sessions around that topic.</p><p>Do your research beforehand to choose a theme that seems to be the most pressing one for the group you want to work with. Use the theme in your pre-work.</p><h3>Create a sense of safety</h3><p>The magic that makes an unconference work is when people there feel psychologically safe to speak their minds and follow their hearts about where they can offer the most meaningful contribution.</p><p>Many people do not start out their typical working day feeling in such a relaxed and open frame of mind. So it’s up to the facilitator to engender this feeling in the attendees.</p><p>But how?</p><p>Start by explicitly stating that you want people to feel safe. Tell them that they can leave their roles at the door, and that everyone here is an equal.</p><p>Warming the group up by doing an exercise to connect them with one another, perhaps doing a playful activity like drawing, can help.</p><p>You could create an anonymous suggestion box (a pile of index cards and a cardboard box with a hole in it would do) where people can tell you what you can do to make them feel more relaxed. Often just making this offer will help people to feel more relaxed, even if they never take you up on it.</p><p>If you’re seriously concerned that psychological safety may be an issue, you could consider asking managers or senior executives to exclude themselves from your first event. Ultimately, unconferences can be a great way to build trust between these groups, but you may want to build up to that gradually.</p><h3>Warm up</h3><p>As the facilitator, try to start the event off by getting people on their feet and doing something connected with the purpose of the event that will get them talking.</p><p>I often use <a href="http://bowperson.com/">Sharon Bowman</a>’s “sole mates” (find the person in the room with the shoes most like yours) but you can insert any good game here that gets people into groups of two-to-three, and ask them to share one expectation or hope for the event, or some other topic-related question.</p><h3>Agenda Building</h3><p>At an unconference, the agenda is built by the participants themselves. This is obviously a crucial part of the event. Make sure you have plenty of paper and pens, and ask everyone who wants to lead a session to write up a card or post-it with at least the:</p><ul><li>Session title</li><li>Intended audience / pre-requisites</li><li>Session leader name</li></ul><p>Then ask them to queue up and present a 30-second pitch to the rest of the group, before placing their card on the agenda board in a particular time and place.</p><h3>Work with the space</h3><p>Another magic ingredient in unconferences is the spaces themselves. The diverse character of the individual spaces can attract and encourage different kinds of interaction, so make the most of the different strengths and weaknesses of each one. Some will have a screen and be great for presentations or coding exercises, some will be more suited to a discussion. Make the attributes of each space clear on your agenda board, and try to help people post their sessions in the appropriate space. Look for unofficial spaces in corridors that could be used for smaller discussion tracks.</p><h3>Let go</h3><p>In <a href="https://www.amazon.co.uk/Open-Space-Technology-Agency-Distributed/dp/1576754766">Harrison Owen’s classic book on open space</a>, he says:</p><blockquote>To the best of my knowledge, there is exactly one way to absolutely guarantee the failure of an open space event, and that is to try and control it.</blockquote><p>Be aware that you will have your own expectations for the event. Try to put your mind at ease and remember <em>whatever happens is the only thing that could have</em>.</p><h3>Closing circle</h3><p>At the end of the day, make sure to get everyone back in a circle and give them a chance to share what they’ve experienced. Many people will feel they’ve missed out on a lot of the conversations (you may have had at least 3–4 going on in parallel all day) so this is their chance to come back together and share those different experiences. Make the most of that.</p><p>As the facilitator, you can try to use the <a href="https://www.amazon.co.uk/Art-Focused-Conversation-Access-Workplace-x/dp/0865714169">focussed conversation</a> method to guide the closing circle towards actions. I like to ask every individual to write down one action on a card, and take it away with them.</p><h3>Attend another unconference</h3><p>Unconference is much easier to understand through experience than by reading these words. The agile community organise lots of these events, such as <a href="http://citconf.com/">CITCON</a>, <a href="http://agilecoachcamp.org/tiki-index.php">Agile Coach Camp</a> and our very own <a href="http://cukenfest.cucumber.io/">CukenSpace</a>.</p><p>I encourage you to attend one of these events and experience unconference for yourself. I can guarantee it’ll be a memorable experience.</p><p>Of course, if you would like an experienced faciliator to run an event for you, we’d be <a href="https://cucumber.typeform.com/to/gUEP2E?">happy to help</a>.</p><h3>Further reading</h3><p>Here’s a <a href="http://agilecoach.typepad.com/agile-coaching/2010/04/tips-on-organizing-an-agile-open-space.html">great blog post</a> from Rachel Davies with more tips on organising open-spaces.</p><p>The <a href="http://openspaceworld.org/wp2/explore/facilitator-resources/">OpenSpaceWorld</a> website has a wealth of resources to learn about unconferences.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a03a6ff1e52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What money got to do with it? Why we run CukeUp! AU.]]></title>
            <link>https://medium.com/@cucumberbdd/what-money-got-to-do-with-it-why-we-run-cukeup-au-1393556dc0ff?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/1393556dc0ff</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[sydney]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Fri, 04 Nov 2016 12:58:20 GMT</pubDate>
            <atom:updated>2016-11-04T12:58:20.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*GnCB7pSZppagaZvW.jpg" /></figure><p>We’re two weeks away from <a href="https://cucumber.io/events/cukeup-au-2016">CukeUp! AU</a> landing in Sydney. It’s our second visit to Australia in as many years and we’re looking forward to our return. Since 2011, we’ve been running various CukeUp! conferences around the world; we ran a couple in New York — with another in the works for ’17 — and each Spring we run the original in London.</p><p>In the early years, in the old shabby offices of Skills Matter on Goswell Road, the conference was a meeting point for those interested in the small, but rapidly growing, Cucumber open-source project. It was a chance to put names to faces and discuss these new, forming ideas found in the BDD community.</p><p>The conference had a strong technical flavour, with lots of content reserved for developers and testers. Nowadays that’s changed a bit. It’s less about the particular tools you use, and much more about creative ways to help you deliver higher quality software. And really, the purpose of the conference, the OSS tool, and company is the same: We want to bridge the communication gap between business and IT.</p><p>At CukeUp! AU this year, we’ll be tackling this head on. Short talks — and even shorter lightning talks — will weave between practical workshops. One minute you’ll be learning about remote collaboration and next, improving the way your team write scenarios.</p><blockquote>The purpose of CukeUp! is to explore innovative ways to bring business and IT closer together.</blockquote><p>Running CukeUp! is always a delight. We cherish the little moments at these small events where you can bump into speakers and share coffee with your peers. Ideas are not enough, but don’t underestimate the power of two days of inspiration and fun. If you’re looking to deliver high quality, predictable software, CukeUp! is your playground.</p><p>If you purchase your ticket this week, we will enroll you onto Cucumber School — our online training — for free.</p><p><a href="https://ti.to/cukeupau/cukeup-au-2016">Book today</a></p><p>Contact the team on cukeup-au@cucumber.io if you have a question.</p><p>See what happened at <a href="https://cucumber.io/blog/2016/01/11/cukeup-au-2015-videos">CukeUp! AU 2015</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*rO3UthKoUQRLE_MH." /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1393556dc0ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cucumber anti-patterns (part two)]]></title>
            <link>https://medium.com/@cucumberbdd/cucumber-anti-patterns-part-two-6f0b021c71fa?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f0b021c71fa</guid>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Wed, 14 Sep 2016 09:24:18 GMT</pubDate>
            <atom:updated>2016-09-14T09:24:18.735Z</atom:updated>
            <content:encoded><![CDATA[<p>If you haven’t read our first blog post already, start by doing that <a href="https://medium.com/@cucumberbdd/cucumber-anti-patterns-part-one-7ca25cc49426">over here</a>. Some of the examples we use in the first post will be referenced below.</p><p>Practicing Cucumber and BDD is often tricky for new teams. There’s plenty of information out there, but who to believe? Core to our business is helping teams around the world implement BDD practices into production. In the past few years we’ve helped hundreds of teams do this successfully through our <a href="https://cucumber.io/training">in-house</a> and <a href="https://cucumber.io/school">online training</a>.</p><p>This post is an edited conversation between Cucumber’s Steve Tooke, Aslak Hellesøy and Matt Wynne. You can listen to the episode on <a href="https://itunes.apple.com/de/podcast/cucumber-podcast-rss/id1078896635?mt=2&amp;ign-mpt=uo=4">iTunes</a>.</p><p>Let’s begin!</p><h3>Testing through the UI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*olJPKL3D7HZxTD6T.png" /></figure><p>Testing through the user interface can be bad for a number of reasons. First of all, UIs tend to change a lot more than the underlying business logic, new trends are appearing all the time and you keep trying out different things to please your users. If you keep changing the UI, your tests are going to break and you’re going to have to dedicate a lot of time keeping them up to date.</p><p>They are also incredibly slow. The only way to test them is through the entire user interface all the way down through your domain logic, and up to the database, and external services, and back. And so it’s just very cumbersome. So when you write your Gherkin in this way, you are stuck forever at the top of the testing pyramid. There’s no way for you to go further down and test things underneath the UI, which is less brittle and a lot faster.</p><p>It also acts as really poor documentation. Let say that it was about the thing that we talked in the last post, where you withdraw money and you want to make sure that you see that withdrawal in your list of recent transactions; if you describe this using a different terminology, which is all about buttons and links and fields and tables, you’re not really explaining the business rule. So it just acts as really, really poor documentation.</p><p>Dan North’s made the point before that you don’t learn your domain language. So using that language of clicking buttons and filling things in is just of a generic domain language of any user interface. But if you say what is it you’re trying to achieve — like when I log in, or when I check my balance, or when I print a statement — you’re having to use nouns and verbs that are from your domain, and therefore those nouns and verbs are going to be words that you’re going to be able to use deeper down in the code. So you’re starting to discover the language of your domain rather than just using generic words from any domain.</p><p>And again, in order to be able to do that, you need to get into the habit of writing these things before you write the code and not after.</p><h3>Scenarios that use “I” as in the personal pronoun</h3><p>Most useful systems or most interesting systems need to exhibit behavior that is seen by multiple actors. So if you’re building a social network you need to be able to have; Aslak tweeted a message and Steve, who is following him, sees the message but Matt, who is not following him, does not see the message. So if you start talking about when I tweet blah blah… it’s like, “Who are you? Are you Aslak or Steve or Matt?”</p><p>We all do it, but the scenarios tend to be richer and more accurate when you avoid the personal pronoun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*Xjc0mZrbEWJgqsGA.jpg" /></figure><h3>Keeping noisy scenarios</h3><p>Sometimes documenting boring scenarios like, “Given my bank account is empty, when I check my balance, then the balance should be zero” are useful on day one of the project, but you can end up with a lot of noise in your documentation if that’s all that you’re documenting.</p><p>Most of the time, these kinds of tests that are just obvious. They’re just there because you needed a full stack test to help you drive out your first iteration of the implementation.</p><p>Try and delete scenarios because quite often that basic functionality will be covered by others that you write later. You can either just delete those old ones that are now a bit daft, or rephrase them into something slightly more valuable. And if you can’t, just get rid of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*DZ0_GuNcz3uMrYGw.jpg" /></figure><h3>Overuse of scenario outlines</h3><p>Overuse of scenario outlines tends to result in lots of scenarios, because it’s really easy to add just another scenario. And this is one of the main things that leads to slow Cucumber tests. Here’s the rule of thumb we practice: if you’re using scenario outlines, don’t do it with a UI test or anything that’s slow. That of course requires you or the developers to build the system in such a way that it is testable without going through the UI. If you’d like to learn more about this, watch this <a href="https://skillsmatter.com/skillscasts/7361-keynote-kind-of-green">talk</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*o-UG9iaoOX77DEps.jpg" /></figure><h3>Developers or testers who write their scenarios without talking to business people</h3><p>When we go and visit teams we often see example data that is really dry and dull, like “Given user one has an expired credit card and user two has a credit card that is valid, when user one checks their balance, and it’s just user one and user two are just…” You have come up with those example names because you can’t think of a more realistic example, and that kind of thing usually happens because you haven’t had that dialogue beforehand.</p><p>If that’s the cae, you’re missing out on a whole potential of extra levels of communication. Jenny Martin talked at CukeUp! last year about how they use the same examples, right the way through, from their story mapping sessions and UX storyboarding and stuff, all the way through to their unit tests. The same characters appear and reappear, the same prototypical users appear and reappear, and the same situations and scenarios appear and reappear. The dry and dull data is a result of the team thinking about these as tests rather than thinking about them as a communication mechanism.</p><h3>No clear separation between Given, When, and Then</h3><p>We see a lot of people struggle with the difference between them because to Cucumber, there is no difference. The only reason there is “Given, When, Then” is to make it easier for people to write something that reads better. So what we say is “Given” is your context, “When” is the action or the event, and “Then” is the outcome or expected outcome. Think of “Given” as the past, “When” is the present, and “Then” as the near future.</p><p>And the metaphor to explain this is going to the theatre. So the “Given” is imagine you’re sitting in your chair, assuming you had a seat at the theatre, and the curtains are drawn. And what’s happening is stage workers are on that stage behind the curtains. You can’t see them. They’re moving furniture about and maybe the actors are walking onto the stage, and they’re preparing themselves for the act. That’s the “Given”. It’s putting all of the right things in the right spot. And then when the curtains are drawn aside and the act starts, that’s your “When”. There’s one important thing that happens that causes something else to happen. And that something else to happen is the outcome. So “Given” all of the actors are walking onto the stage, which means setting up stuff in your database, creating some objects, maybe navigating through the initial web page. “When” is for triggering the important event, and “Then” is for observing the expected outcome. And it’s not complicated but people tend to mix them up a lot, and that just makes it hard to reason about them.</p><h3>High-level and vague scenarios</h3><p>So we’ve talked already about the end of the spectrum where there’s too much detail, where the scenario is boring, and even maybe distracting to read because it’s just got loads and loads of irrelevant incidental detail in it. But the other end of the spectrum is that you can’t really trust the scenario, or you can’t tell what it would actually do if you run it.</p><p>For example:</p><blockquote>Given I have an account<br>When I withdraw some money Then the balance<br>should be the original balance minus the amount withdrawn</blockquote><p>There’s no concrete value in there. It doesn’t say what my balance was, it didn’t say how much I withdrew, it’s basically expressing the business rule, but using the “Given, When, Then” format.</p><p>And the extreme example of that, where you’re so abstract, is where you just say, “Given the system is turned on, when I use it, then it works perfectly!</p><p>Sometimes in a untestable place where a team are just getting used to using Gherkin, but they haven’t actually done any automation yet, they’re writing scenarios, but they’re really just using Gherkin as a way of expressing business rules rather than being concrete. They’ve just taken the lever a little bit too far towards abstract. It’s arguably a bit better than too much detail, but finding that balance between too much detail and not enough detail is a bit of an art rather than a science. And I think teams shouldn’t get too hung up about getting it perfect, but it’s definitely a problem when there’s not enough detail and you can’t really tell what’s going to happen under the hood.</p><p>This tends to be more common when product owners or business analysts write the scenarios alone in their office in JIRA, because they are not programmers and testers so they don’t know the implications of writing it in that form.</p><p><em>Quick sales pitch. You can learn more about how we support large teams implementing BDD and Cucumber via </em><a href="https://cucumber.io/training"><em>in-house training and consulting</em></a><em>. If you’d like one of the guys from the podcast to visit your offices, </em><a href="https://cucumber.typeform.com/to/gUEP2E?source=blog"><em>contact us</em></a><em> for more details.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f0b021c71fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cucumber anti-patterns (part one)]]></title>
            <link>https://medium.com/@cucumberbdd/cucumber-anti-patterns-part-one-7ca25cc49426?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ca25cc49426</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Tue, 30 Aug 2016 14:10:00 GMT</pubDate>
            <atom:updated>2016-08-30T14:10:00.766Z</atom:updated>
            <content:encoded><![CDATA[<p>This post outlines our favourite Cucumber anti-patterns. There are many ways to use tools poorly and, as the core team behind Cucumber, we’ve picked up our fair share of bumps and bruises. Hopefully by passing on our own experiences, we can help you steer clear of the most common pitfalls.</p><p>Along the way we’ll also clarify why these patterns can be so damaging and suggest alternatives we’ve seen work while <a href="https://cucumber.io/training">training and coaching teams</a> around the world.</p><p>This is a two-part blog post based on a conversation between Steve Tooke, Aslak Hellesøy and Matt Wynne on <a href="https://itunes.apple.com/gb/podcast/cucumber-podcast-rss/id1078896635">The Cucumber Podcast</a>.</p><p>You can download and listen to our podcast via <a href="https://itunes.apple.com/gb/podcast/cucumber-podcast-rss/id1078896635">iTunes</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*5zf60eCad75D9wmj.jpg" /></figure><p>First up…</p><h3>Writing the scenario after you’ve written the code</h3><p>Let’s step back a bit before we start. Why should you write your scenarios before any code is written? The blunt answer is: Cucumber is not a testing tool.</p><p>Yes OK, it <em>is</em> a testing tool, but first and foremost it is a tool to test your understanding of the problem domain. Only once this test passes, which means everybody agrees on what you’ve said in your Gherkin scenario, can you start implementing.</p><p>Writing the scenarios before the code encourages people with different perspectives to be involved in defining the behaviour of the software. A product owner or a business stakeholder will read it with one perspective, a developer with another one, and a tester with a third. It makes it easier for people to figure out whether they disagree about something or whether there’s uncertainty.</p><p>Having that very concrete description of the example before you even start developing helps you figure out if everybody has the same understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*8wabD_-I6ly-ImF8.jpg" /></figure><h3>BA/Product Owner creating scenarios in isolation</h3><p>If your business analyst or product owner writes all the Gherkin on their own, perhaps in a JIRA ticket, you will be missing out on the whole team’s input.</p><p>What you end up with is Gherkin that doesn’t represent everybody’s common understanding, and you miss the opportunity to thrash out and expose all of those differences.</p><p>Scenarios written by non-technical team members very often can’t be automated without being changed. And once that happens, they stop being the thing that the product owner believed in.</p><p>They might have sat and wrote out those words but now the Gherkin says something different, and pretty soon it just becomes a thing that belongs to the testers or the devs because the product owner’s like, “Well that’s not what I said, so this is something else.”</p><h3>Incidental details</h3><p>Rambling long scenarios with lots of incidental details can ruin a good story. Often times the scenarios are written as a test, rather than documentation, which can lead to fluffy scenarios.</p><p>An example of this might be:</p><blockquote>Given I sign up as Matt, And my password is password,<br>And my password confirmation is password.<br>When I check my bank balance then my bank balance is $100</blockquote><p>The purpose of the scenario is to check the bank balance, and it isn’t really relevant what the password is. But people fall into the trap of thinking they need to fill something in on the password form, and the way they wrote the scenario was thinking about it like, “I’m scripting a test. This is what I would type in if I was doing a manual test, so I’ve got to put that in my Cucumber scenario”.</p><p>The lesson here is to focus on the behaviour of the story and steer clear of incidental details which don’t contribute anything.</p><h3>Testing several rules at the same time</h3><p>A related anti-pattern is testing more than one outcome. Testing multiple things can blur the essence of your scenario and lead to uncertainty and misunderstandings.</p><p>Here the litmus test is to take a scenario, show it to someone who isn’t familiar with the domain and ask if they can explain its functionality. If the scenario doesn’t describe the behaviour of the system, you can’t use this as documentation and therefore can’t collaborate effectively on its outcomes.</p><p>Going back to the bank/password example, what exactly are we trying to test here? You would have to guess right. Are we testing passwords or are we testing the bank balance? Or we’re testing both?</p><h3>Scenario with either a bad name or no name at all</h3><p>Often a good place to sum up the essence of a scenario is in the scenario title. But if you miss it off or if you’ve copied and pasted a scenario from the one below, it can obscure the meaning of the scenario.</p><p>Try to avoid boring and non-specific titles such as “Sign Up, Log In, Visit Balance Screen, and Review Balance”. For our own development work on <a href="https://cucumber.io/pro">Cucumber Pro</a>, we like to use the Friends episode naming convention for thinking about the name of the scenario, where you go, “This is the one where the balance is positive,” or, “This is the one where the balance is over my overdraft”. And in the Given, When, Then, that’s when you go on into exactly how you’re going to check for that behaviour.</p><p>There’s some useful tips about this in <a href="https://cucumber.io/blog/2015/12/08/example-mapping-introduction">Matt’s Example Mapping post.</a></p><h3>Adding pointless scenario descriptions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*MWKEAGzsBu82IWp6.jpg" /></figure><p>Descriptions such as “As a user, I want to check my balance, so that I know what my balance is” doesn’t give you any extra information about the user.</p><p>Instead, focus on the business rules.</p><p>For example, one rule could be after you’ve made a withdrawal, the withdrawal should show up in your list of transactions, and then you could have an example to illustrate that.</p><p>It’s best to think of the feature file as a living document so when you talk about the story or the feature, you know that there are some business rules, you’ve come up with some examples, but you’ve also identified that there’s some uncertainty.</p><p>It can be really good to write those down in the front matter as well, and check that in version control. So, “This is our current understanding of this feature; we know this stuff, we’ve got these acceptance tests, but we also know that we don’t know this other stuff”.</p><h3>Next time</h3><p>Folks out there, if you’re doing these anti-patterns, don’t worry! We’ve all done them, you live and learn. Share your anti-patterns stories in the comments below.</p><p>Part two of this blog post will be posted next month. Or you can <a href="https://cucumber.io/blog/2016/07/01/itunes.apple.com/gb/podcast/cucumber-podcast-rss/id1078896635">download the podcast on iTunes</a>.*</p><p><em>Quick sales pitch. Learn more about how we support large teams implement BDD and Cucumber in a safe and responsible manner through </em><a href="https://cucumber.io/training"><em>in-house training and consulting</em></a><em>. If you’re interested in having one of the core-team behind Cucumber visit your offices, </em><a href="https://cucumber.typeform.com/to/gUEP2E?source=blog"><em>contact us</em></a><em> for more details.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ca25cc49426" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The world’s most misunderstood collaboration tool]]></title>
            <link>https://medium.com/@cucumberbdd/the-world-s-most-misunderstood-collaboration-tool-526b59acd3f4?source=rss-dd5bd70a2b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/526b59acd3f4</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Cucumber]]></dc:creator>
            <pubDate>Wed, 07 Oct 2015 14:24:57 GMT</pubDate>
            <atom:updated>2015-10-07T14:24:57.752Z</atom:updated>
            <content:encoded><![CDATA[<p>Cucumber reached a million downloads in the first three years and 5 million downloads 3 years later. I’m happy to have created such a popular tool, but saddened to see how it’s misused and misunderstood.</p><p>If you think Cucumber is a testing tool, please read on, because you are wrong.</p><p>Cucumber was born out of the frustration with ambiguous requirements and misunderstandings between the people who order the software and those who deliver it.</p><p>In 2003 I became part of a small clique of people from the XP community who were exploring better ways to do TDD. Dan North named this BDD. The idea was to combine automated acceptance tests, functional requirements and software documentation into one format that would be understandable by non-technical people as well as testing tools.</p><p>There was a lot of trial and error and in 2008 I created Cucumber to distill what I had learned into a nice little package. My vision was to provide a language, a process and a tool that would provide a single source of truth of software behaviour. The audience would be both non-technical and technical project members.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*Z8pSQ8btMSo_HtR0.png" /></figure><p>Unfortunately you can’t just download Cucumber, start writing Cucumber Features and expect a nirvana of truth and enlightenment to happen on its own. There is a <strong>process</strong> to follow that involves many roles on the software team.</p><p>This process is called BDD. It’s what came out of that clique I mentioned. BDD is not a tool you can download. Gojko Adzic gave BDD a new and better name: <strong>Specification by Example</strong>.</p><p>This process primarily consists of two activities (very simplified):</p><p>The people in charge of defining the requirements (business analysts) sit down with programmers and testers and discuss a feature to be implemented. (These roles are often called the three amigos). The three amigos come up with examples of how the software should behave, and write them down as Cucumber Scenarios.</p><p>Programmers run those Cucumber Scenarios with Cucumber, which tells them what needs to be implemented — what’s missing. They code a little bit, run Cucumber again and continue until the feature works as described.</p><p>The technique is called Outside-In because programmers typically start with the functionality that is closest to the user (the user interface, which is on the outside of the system) and gradually work towards the guts of the system (business logic, persistence, messaging and so on) as they discover more of what needs to be implemented.</p><p>This discovery is guided by failing tests, just like with <a href="http://en.wikipedia.org/wiki/Test-driven_development">TDD</a>. The main difference is that Cucumber operates on a higher abstraction level, closer to the domain and farther away from classes and methods.</p><p>Most of the early adopters of Cucumber in 2008–2009 understood that Cucumber was intrinsically linked to this process. They would often wear all hats of the three amigos: Business analyst, programmer and tester. -Or they would be working in a team where everyone was more or less on board with the idea of BDD.</p><p>The second big batch of adopters was Rails developers (2009–2011). Automated testing was part of their culture, partly due to the testing tools embedded in Rails. Many of them saw Cucumber as a <strong>better</strong> automated testing tool, but most of them completely missed out on the underlying practices such as Specification Workshops with the three amigos and Outside In Development.</p><p>What many didn’t realise was that Cucumber was now taken out of its intended context: Collaboration.</p><p>When Cucumber is adopted solely as a tool to write automated tests without any input from business analysts they tend to become <a href="http://benmabey.com/2008/05/19/imperative-vs-declarative-scenarios-in-user-stories.html">imperative </a>and lose their documentation value.</p><p>This also makes them slow and brittle.</p><p>I’m partly to blame for this since I equipped Cucumber with <a href="http://aslakhellesoy.com/post/11055981222/the-training-wheels-came-off">training wheels</a>. Mea culpa.</p><p>There is a certain amount of ceremony involved with Cucumber. There is both Gherkin and Step Definitions to maintain. This can be justified if it improves collaboration and reduces misunderstandings, but if the tool is used in a vacuum those benefits will obviously never happen.</p><p>This improper usage of Cucumber caused many Rails teams to <a href="https://news.ycombinator.com/item?id=6411787">reject Cucumber</a>. It’s an interesting thread. The vast majority doesn’t realise that Cucumber is a collaboration tool.</p><p>When Matt Wynne and I published a <a href="http://pragprog.com/book/hwcuc/the-cucumber-book">book about Cucumber</a> in 2011 it ended up on the radar of larger organisations that employ <strong>dedicated</strong> testers. These are people who are used to manual testing, enterprise tools such as HP Quality Center / ALM and to some degree other open source automation tools like Selenium.</p><p>This crowd has pretty much fallen into the same trap as the Rails developers — they use Cucumber uniquely as a testing tool. No collaboration. No outside-in.</p><p>They write Cucumber scenarios <strong>after</strong> the software instead of the other way around. Doing BDD well leads to decoupled software, which again makes it easy to reduce the duration of tests. You don’t get any of these benefits when you treat Cucumber as an afterthought.</p><p>Andrew Premdas, one of the first adopters of Cucumber, says it well:</p><blockquote><em>Your cucumber features should drive your implementation, not reflect it.</em></blockquote><p>Think about that for a minute. This has a lot of implications. First of all, it means Cucumber features should be written <strong>before</strong> the code implementing the feature.</p><p>This takes us back to the Venn diagram in the beginning of this post. Cucumber features start their life as software requirements. The most important contributors to requirements aren’t programmers or testers — it’s business analysts. During this activity the programmers’ and testers’ primary responsibility is to ask questions and make sure they understand everything.</p><p>When you do BDD/Specification by Example and Outside-in, regression tests fall out at the other end. They are a by-product of those activities. Testing isn’t the activity itself.</p><p>Cucumber is first a formost a collaboration tool that aims to bring a common understanding to software teams — across roles.</p><p>For many teams it isn’t lack of understanding of BDD or Specification by Example that is the biggest barrier. It’s simply inappropriate tooling.</p><p>Programmers and testers are comfortable with development tools. Most business analysts are not. Cucumber is a development tool, and therefore many business analysts won’t touch it with a ten feet pole.</p><p>This is part of the reason why I co-founded Cucumber Ltd and our flagship product, <a href="https://cucumber.io/pro">Cucumber Pro</a>. Our goal is to provide a collaboration tool for Cucumber that is as easy to use as a word processor or social networking website.</p><p>We also offer <a href="https://cucumber.io/training">training</a> for teams who want to learn how to apply BDD and Specification by Example.</p><p>I am very excited about the future of Cucumber. I hope more teams will start to use it the way it was intended to be used.</p><p><em>Originally published at </em><a href="https://cucumber.io/blog/2014/03/03/the-worlds-most-misunderstood-collaboration-tool"><em>cucumber.io</em></a><em> on March 3, 2014.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=526b59acd3f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>