... Hi Thanks for your words Kelly and you're right, sometimes I don't sit back and appreciate how far I have come in such a short time but I'm always striving...
16954
Gishu Pillai
gishu_pillai
Jun 1, 2006 9:58 am
I have an object that needs to be created once in a process. So I have implemented the Singleton pattern with private ctors et all. All is fine. Now I get a...
16955
Donaldson, John (GEO)
geo_johnfr
Jun 1, 2006 10:07 am
I don't see how you can do this is a TDD way. Just give up and write an integration test driven from a script? John D. ... From:...
16956
adam
adam.maillist01@...
Jun 1, 2006 10:19 am
can you make the appropriate instance getter protected virtual, that way you can inherit and override in your tests. Or just inherit from the singleton in your...
16957
Gishu Pillai
gishu_pillai
Jun 1, 2006 10:35 am
... one. Nice one. Here's what my sneaky brain came up with... public class EggFactory { private static Egg m_obSingleInstance; private EggFactory() {} public...
16958
Joakim Ohlrogge
j0hlrogge
Jun 1, 2006 10:40 am
I assume that you are using Java in the post below. I think C# has the equivalent to all the stuff below or some other solutions to acomplish the same. ...
16959
Donaldson, John (GEO)
geo_johnfr
Jun 1, 2006 10:56 am
Gishu, well, in fact I didn't mean give up on TDD - I meant give up on using a unit-testing tool for this test. You can still do TDD but in an integration kind...
16960
Artur Jales Moreira
moravich
Jun 1, 2006 11:55 am
I'm with John on this issue. In my opinion, what you are trying to test does not fall under the umbrella of unit tests. So you would be better of using a...
16961
avinap77
Jun 1, 2006 12:03 pm
... I recently did something similar with TDDing several threads accessing a shared resource, but the same idea should be applicable with seperate processes: ...
16962
Mirkana Aleh
Mirkana
Jun 1, 2006 12:38 pm
Hi, We manage to do these tests without compromising the scope of the methods using TypeMock.NET (www.typemock.net). It is quite simple you save the state of...
16963
Donaldson, John (GEO)
geo_johnfr
Jun 1, 2006 1:21 pm
Avi, yes, I too use this "hands off" technique (for example, I work with a product which outputs a file - so I detect the file output). But it's weak TDD, not...
16964
Eduardo Yáñez Para...
eduardo.yanez
Jun 1, 2006 2:52 pm
Hi all, I'm new to.. erm, well I'm trying to become new to TDD :), I've read some articles, and Kent Beck's book, but there are some ways to do things that...
16965
Trond Arve Wasskog
ilmyggo
Jun 1, 2006 2:54 pm
You could Just Create One as Uncle Bob suggests: http://butunclebob.com/ArticleS.UncleBob.SingletonVsJustCreateOne Cheers, Trond Arve ... [Non-text portions of...
16966
Jeff.Yu
achievo_jeff_yu
Jun 1, 2006 2:58 pm
Hi, I have some puzzles about the interaction based test, i'm sorry that it is a bit lengthy, but i just want to make you to understand my situation easily. ...
16967
James Carr
cloud_strife...
Jun 1, 2006 3:24 pm
Hi, When I used to develop in PHP, I used partial mocks to mock only certain methods of a particular test object. I found this handy because I could isolate...
16968
avinap77
Jun 1, 2006 4:28 pm
... Hi John. What makes this "weak"? Is it any less direct than testing throuugh a test-framework? think of the spawned processes as an extended/proprietary...
16969
Joakim Ohlrogge
j0hlrogge
Jun 1, 2006 4:54 pm
I think what you are asking for is "intercept" in rMock: http://rmock.sf.net It works by subclassing the class you want to mock. Any method you don't record...
16970
Tony Byrne
tony_j_byrne
Jun 1, 2006 5:16 pm
Hello Jeff.Yu, First off, you are not alone. Plenty of people have trouble with automating tests in the presence of a database. The problem is made even more...
16971
Ron Jeffries
ronaldejeffries
Jun 1, 2006 5:21 pm
... Will there be any code? Can you think of any ways it could be written wrongly? Ron Jeffries www.XProgramming.com Learn the principle, abide by the...
16972
avinap77
Jun 1, 2006 6:18 pm
... Hi Eduardo. I think you should start by articulating some stories, and then translate them into tests. ... So there are several stories (I've extended...
16973
Anderson, Kelly
kellycoinguy
Jun 1, 2006 7:50 pm
The desire to improve one's self is important, and unfortunately somewhat rare these days. It is clearly NOT rare among those who post on this list, which is...
16974
Anderson, Kelly
kellycoinguy
Jun 1, 2006 7:52 pm
I do!!! This list. :-) -Kelly ________________________________ For now, I don't know what else to read instead. Jean. E-Mail messages may contain viruses,...
16975
Mark Wilden
markwilden
Jun 1, 2006 8:11 pm
From: "Anderson, Kelly" <kanderson@...> ... Honestly! I don't read any "magazines." There is way more than enough quality online material to keep me...
16976
James Carr
cloud_strife...
Jun 1, 2006 8:18 pm
Thanks....
16977
Phlip
phlipcpp
Jun 1, 2006 8:24 pm
... Great. This mailing list just helped kill print media. I hope you are all satisfied. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!...
16978
Mark Wilden
markwilden
Jun 1, 2006 8:35 pm
... From: "Jeff.Yu" <jeff.yuchang@...> ... The way I've done this is to 1) use a test database whose contents won't affect developers, 2) begin a...
16979
Mark Wilden
markwilden
Jun 1, 2006 8:36 pm
From: "James Carr" <james.r.carr@...> ... I think this can always be achieved by subclassing and overriding the mocked methods. ///ark...
16980
Tim Ottinger
linux_tim
Jun 1, 2006 8:41 pm
... Slashdot, OS Views, Daily Python URL, and Daily WTF....
16981
Joakim Ohlrogge
j0hlrogge
Jun 1, 2006 9:16 pm
... True, you can always create manual mocks. There is no situation where dynamic mocks is the only possible solution but I think that it is more convenient...
16982
Robert Martin
rmartinoma
Jun 2, 2006 2:19 am
... Tim, you should post an example of this surface area problem. I agree that high surface area is distasteful. I *really* hate constructors with lots of...