Jon, I've recently been trying out the BDD-style add-on called StoryQ. My approach was like this: write the "story" (it's encoded as given-when-then with some...
34119
Gishu Pillai
gishu_pillai
Feb 1, 2011 12:52 pm
Sorry about the delay.. day job :) Tried the Flash cards kata with Lisp and C# - now I have even more questions about the transformations idea. ...
34120
Donaldson, John (GEO)
geo_johnfr
Feb 1, 2011 2:34 pm
Gishu, Very nice. I too had a hard time getting going - it's such a simple problem, and yet... I think we shouldn't be too strict on the actual order, and yes,...
34121
Josue Barbosa dos San...
josuebsantos
Feb 1, 2011 2:36 pm
... +1. In other others ATDD+TDD -- Abraços, Josué http://twitter.com/josuesantos On Tue, Feb 1, 2011 at 5:01 AM, Donaldson, John (GEO) < ... [Non-text...
34122
Donaldson, John (GEO)
geo_johnfr
Feb 1, 2011 2:52 pm
I had a try using StoryQ (http://storyq.codeplex.com/) with Flash Cards. StoryQ is a simple BDD framework. There are a couple of examples as I started below. ...
34124
Adam Miller
millerar1980
Feb 1, 2011 3:45 pm
After a posting this, reading more of the posts in the "Rethinking when to write unit tests vs acceptance tests" topic and doing some more thinking I think...
34125
Donaldson, John (GEO)
geo_johnfr
Feb 1, 2011 4:03 pm
Adam, For the story where you say: "... the wording of the Given and Then clauses feels kind of "silly" for a BDD test": The heart of the test is: ...
34126
Erlis Vidal
erlis.vidal@...
Feb 1, 2011 4:11 pm
Hi Adam, What is happening to you is common initially, when we start trying BDD there is a blur line between acceptance and unit tests. I even tried once to ...
34127
Donaldson, John (GEO)
geo_johnfr
Feb 1, 2011 4:25 pm
Erlis, Thanks - a good explanation for me of the use of scenario. I'm definitely at the "shu" stage in BDD... John D. ... From:...
34128
Erlis Vidal
erlis.vidal@...
Feb 1, 2011 4:31 pm
Hi John, I've been using it for a while and I really like it. Something that I'm doing to improve my tests, and probably could help yours also is to use a ...
34129
Donaldson, John (GEO)
geo_johnfr
Feb 1, 2011 5:03 pm
Erlis, ha! You beat me to it. Yes, it helps. I was thinking of breaking out the scenarios as you show. Possibly something like: In order to exercise a flash...
34130
Adam Miller
millerar1980
Feb 1, 2011 5:06 pm
Erlis, Thank you for your post. I think my problem was the same that you mentioned, trying to replace all tests with BDD tests. I think I jumped on this...
34131
Erlis Vidal
erlis.vidal@...
Feb 1, 2011 5:24 pm
Hi Adam, I'm more than glad to help you. I would like to suggest you a couple of books that could help you more and the RSpec book ...
34132
Josue Barbosa dos San...
josuebsantos
Feb 1, 2011 5:36 pm
Is there is a StoryQ for Java? :) On Tue, Feb 1, 2011 at 2:02 PM, Donaldson, John (GEO) < ... -- Abraços, Josué http://twitter.com/josuesantos [Non-text...
34133
Erlis Vidal
erlis.vidal@...
Feb 1, 2011 5:42 pm
No that I know, The project is relative young, not a lot of people know about it, (at least not like SpecFlow) I don't think porting it to java would be...
34134
Behrang Saeedzadeh
behrangsa
Feb 2, 2011 4:08 am
The article is here: http://toranbillups.com/blog/archive/2011/01/31/Test-Driven-Development-Is-Hard The questionable part is here: "When I first started unit...
34135
Gishu Pillai
gishu_pillai
Feb 2, 2011 4:49 am
Depends on the context actually, if state-based testing is possible with real collaborators (possible => meets all the criteria for a good unit test), I prefer...
34136
Behrang Saeedzadeh
behrangsa
Feb 2, 2011 5:02 am
... collaborators. What's your definition of unit-test in an OO language then?...
34137
Gishu Pillai
gishu_pillai
Feb 2, 2011 5:46 am
Good question :) A unit test tests one behavior that is expected from an object. It is also automated, self-checking, consistent/repeatable, independent,...
34138
Michael Hill
uly562000
Feb 2, 2011 9:06 am
I got an answer to that one, too: http://anarchycreek.com/2009/05/20/theyre-called-microtests/ I find that sidestepping the boring "my unit test != your unit...
34139
Behrang Saeedzadeh
behrangsa
Feb 2, 2011 11:38 am
Okay, does anybody know what's the oldest definition of unit test, 1- In computer science/software engineering literature, and 2- In object oriented...
34140
Freedom Developer
freedomdevel...
Feb 2, 2011 11:55 am
That was a very clear example. Thanks for sharing. Tom...
34141
Donaldson, John (GEO)
geo_johnfr
Feb 2, 2011 1:00 pm
I don't know what the oldest usage is, but *I* first encountered it in the "Test Infected" article by Beck and Gamma. Here's one copy:...
34142
Richard Howells
loopylozzysdad
Feb 2, 2011 1:28 pm
I too, do not know the oldest usage. However I think you may find *unit* to be a slippery term and therefore unit test to be a poorly defined term. When I...
34143
John Roth
jhrothjr
Feb 2, 2011 2:59 pm
IIRC, when I first heard the term, it was applied to the smallest unit they could think of at the time: the separately compiled module. And I seem to remember...
34144
Keith Ray
attkeithray
Feb 2, 2011 5:57 pm
What has worked for you, or didn't work? C. Keith Ray Amplify Your Agility Coaching | Training | Assessment | eLearning http://industriallogic.com...
34145
Charlie Poole
cpoole98370
Feb 2, 2011 9:00 pm
Hi John, That's how I first encountered it as well. I moved into programming in the early 70s and the term seemed to be well established at the time. Charlie ...
34146
Adam Sroka
adamjaph
Feb 2, 2011 9:34 pm
IIRC, the term predates the computer and is borrowed from Electrical Engineering. I have not yet found a citation to confirm that. I studied EE in the 90s, but...
34147
Adam Sroka
adamjaph
Feb 2, 2011 9:43 pm
P.S. This is an aside, but one thing that has always fascinated me is how often and how quickly our terminology gets borked. It seems to happen more in...
34148
abrar
ibrararshad
Feb 2, 2011 10:49 pm
Hello, I have a few queries about the use of test-lists in TDD. I want to know the actual procedure which is being followed for TDD in industry. I know the...