News for hackers. Stuff that matters.
Re:The Tragedy of Given-When-Then by RHSeeger on Tuesday April 16, 2019 @10:11AM (#19673746)
> We will realise that describing data and calculations using the Given-When-Then format leads to tragedy, and will create and popularise tools and approaches using Excel to document examples.

Given all the examples given, it sounds more like Cucumber is the problem. Having specifications/tests written in the form of given-when-then isn't shown to have any issues. Rather, taking those specs/requirements and disconnecting them from the people who need them is the issue.

Re:The Tragedy of Given-When-Then by thom on Tuesday April 16, 2019 @10:17AM (#19673807)
Is the complaint literally just about aligning the text in tables of a Cucumber file because business analysts are more comfortable in Excel? Or just managing the text of your test suite across a whole project? I am struggling to parse out the underlying point of the article.
Re:The Tragedy of Given-When-Then by anentropic on Tuesday April 16, 2019 @10:44AM (#19674035)
What I understood is:

You are supposed to capture requirements in Given/When/Then form before coding, and they should be written in a way that is independent of the implementation

The complaint seems to be that what happens in practice is "the devs have taken over" the system, so Cucumber just becomes a test automation software

This has led to writing tests in Given/When/Then format which test overly specific elements of the implementation, and are often written after the fact, instead of as a way to capture requirements.

And some other stuff, but that's primarily what I got out of it.

Re:The Tragedy of Given-When-Then by tannhaeuser on Tuesday April 16, 2019 @08:08PM (#19678490)
> the devs have taken over [authoring tests]

That's what happened in the projects where I used fitnesse, jbehave, cucumber, etc. The users couldn't understand the artifacts and what they're supposed to do, and the tools were highly idiosyncratic. It ended in becoming just yet another hassle for developers.

Re:The Tragedy of Given-When-Then by pcm191 on Friday April 19, 2019 @02:38AM (#19697537)
Exactly.

Whereas using Excel for specification of calculations (by Business Users or Business Analysts) actually brings the business and developers closer together, removing the need for intermediaries. Business Users are very happy using Excel and checking calculations etc. as it tends to be their home environment.

Re:The Tragedy of Given-When-Then by maxxxxx on Tuesday April 16, 2019 @01:42PM (#19675658)
You just have to look for 10 minutes at Cucumber and what's needed to make it work and you'll see that it's simply a bad idea. It's the same nonsense as generating code from UML or visual coding. Looks good to the non programmer but horrible to work with.
Re:The Tragedy of Given-When-Then by ben509 on Tuesday April 16, 2019 @11:03AM (#19674222)
The GWT problem and Cucumber's issues remind me of COBOL or even AppleScript. They worked out an English-like syntax that looks great in a demo, but winds up being harder to write code in than most other programming languages.

And the reason seems to be that it's requiring us to express ideas in a vastly simplified language. In order to do that, we have to expand a complex idea to many simpler ideas.

That's making us do the job of the compiler! Real high-level languages are rich with many idioms and structures and the compiler then reduces that to simpler ISA.