Search the web
Sign In
New User? Sign Up
testdrivendevelopment · Test-driven Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 31971 - 32000 of 32000   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
31971
Hello, I noticed an interesting Java project called CRAP4J (www.crap4j.org), to detect code that smells. While this seems really neat, there's no C++ support...
Srdjan Todorovic
srdjantodorovic
Offline Send Email
Nov 2, 2009
3:37 pm
31972
Hi Srdjan, Have a look at this stackoverflow topic: http://stackoverflow.com/questions/1433632/is-there-a-findbugs-and-or-pmd-equivalent-for-c-c Kind regards, ...
Daan de Wit
dewitdaan
Offline Send Email
Nov 2, 2009
4:45 pm
31973
If its managed C++ crap4n will work for you. Kind regards, Morgan On Mon, Nov 2, 2009 at 4:35 PM, Srdjan Todorovic <todorovic.s@... ... [Non-text...
Morgan Persson
morgan.persson
Offline Send Email
Nov 2, 2009
7:08 pm
31974
2009/11/2 Srdjan Todorovic <todorovic.s@...> ... Code coverage and static analysis are two different beasts. For static analysis there are a number...
liam mail
liam.list
Offline Send Email
Nov 2, 2009
7:11 pm
31975
Avi - as usual, good clear advice. In my case, my entities all have interfaces, so I can create fake/mock/stub versions of them as needed. Pretty much the same...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Nov 3, 2009
7:05 am
31976
... I think the other smart answer it not allow hundred DIRECT dependence. Only allow four or five direct dependence, so it is easier to manage and mock, if...
Carfield Yim
c8133594
Offline Send Email
Nov 3, 2009
3:22 pm
31977
@John, If the dependencies are driving you crazy, try changing the granularity of your queries. Instead of pulling a "well-endowed" 'Person'. Pull just...
gutzofter
Offline Send Email
Nov 3, 2009
5:28 pm
31978
Hi, ... I have just looked at -Weffc++ and it does throw up a lot of warnings, many of which are from the standard libs. The gcc documentation does suggest...
Srdjan Todorovic
srdjantodorovic
Offline Send Email
Nov 3, 2009
9:21 pm
31979
The code's C++/Linux, so not managed and not part of the .Net framework. I think that's what you meant with regards to managed C++. Thanks Srdjan...
Srdjan Todorovic
srdjantodorovic
Offline Send Email
Nov 3, 2009
9:21 pm
31980
Hi guys, I'm having an issue and I would like to know if some of you have some advice, comments, or whatever that can help me. Because I feel that I'm doing...
Erlis Vidal
Erlis.Vidal@...
Send Email
Nov 3, 2009
9:24 pm
31981
Carfield, You are right of course. In modeling this we would like to avoid lots of dependencies. But if there are real-life dependencies, how can we avoid them...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Nov 3, 2009
9:33 pm
31982
Gutzofter, You are right. But in the case where I need all the dependencies, how do I test without injecting them all? See my reply to Carfield for one way...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Nov 3, 2009
9:38 pm
31983
class TestEasyHouse : House { constructor() : House(new TestEasyCat(), new TestEasyOwner(), new TestEasyCar()) { } } How about the above? Alan Baljeu ...
Alan Baljeu
alanbaljeu
Offline Send Email
Nov 3, 2009
10:24 pm
31984
I hope you will be interested to propose a session on TDD for XP2010 in Trondheim, Norway - anything from a workshop to a lightning talk would be interesting. ...
Rachel
rachelclaire...
Offline Send Email
Nov 3, 2009
11:05 pm
31985
done: http://xp2010.agilealliance.org/node/5213 <http://xp2010.agilealliance.org/node/5213> ... -- Thanks, Roy Osherove www.TypeMock.com - Unit Testing, Plain...
Roy Osherove
royosherove
Offline Send Email
Nov 4, 2009
1:35 am
31986
2009/11/3 Erlis Vidal <Erlis.Vidal@...> ... The single responsibility principle states that each unit should have a single purpose/responsibility. ...
Olof Bjarnason
olof.bjarnason@...
Send Email
Nov 4, 2009
7:12 am
31987
Hi Olof, Thanks for your response. I like your point of view, and I'm really trying to follow that idea, that's why I'm confused. I created a method, with the...
Erlis Vidal
Erlis.Vidal@...
Send Email
Nov 4, 2009
2:44 pm
31988
@Erlis, I use a rule of thumb when using extract class: Extract behavior not state. What it looks like is you are extracted state to a new class. So now, not...
gutzofter
Offline Send Email
Nov 4, 2009
5:02 pm
31989
Erlis, I'm a bit confused. Here's the basic position: duplicated code is bad - remove it. It seems as though you have something duplicated, so I'm wondering...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Nov 4, 2009
6:40 pm
31990
Alan, I don't think this addresses the difficulty. Your suggestion is a good example of how to construct a complex object using fakes. But it doesn't treat the...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Nov 4, 2009
9:07 pm
31991
2009/11/4 Donaldson, John (GEO) <john.m.donaldson@...> ... There could be several solutions to your problem. One way to get a different perspective is to...
Nat Pryce
nat_pryce
Offline Send Email
Nov 4, 2009
9:33 pm
31992
Hi John, You are right when referred to remove the old X tests, that is what I usually do. But in this case what seems to happen is that all X appear to be...
Erlis Vidal
Erlis.Vidal@...
Send Email
Nov 4, 2009
9:35 pm
31993
Hi gutzofter, Thanks for your answer. I have to admit that I didn't understand well what is the difference between behaviour vs state. Can you send me some...
Erlis Vidal
Erlis.Vidal@...
Send Email
Nov 4, 2009
9:35 pm
31994
Erlis, You have separated the InPause logic, and you can test that separately. This seems to be the right direction. I don't see that you need to test again...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Nov 4, 2009
10:01 pm
31995
If I understood your problem correctly, initially, you have tests for FindRunningReleases that are something like these ...
Franz Allan Valencia ...
favs77
Offline Send Email
Nov 5, 2009
8:03 am
31996
... It's really simple state is just data. When I say 'behavior', I mean the algorithm for transforming data. ... FindRunningRealeases is now just an iterator....
gutzofter
Offline Send Email
Nov 5, 2009
8:30 am
31997
Hi guys, Thanks for all your responses. Putting together John, gutzofter and Franz ideas I could do a better solution. When I was reading all your responses,...
Erlis Vidal
Erlis.Vidal@...
Send Email
Nov 5, 2009
3:53 pm
31998
Take a look at http://cppdepend.com. They have a command line version if you're not using VS. It includes most of the same metrics as crap4j and is probably...
James Martin
jmajma...
Offline Send Email
Nov 6, 2009
10:25 pm
31999
On Mon, Nov 2, 2009 at 7:35 AM, Srdjan Todorovic ... You might want to look at QA C++ from Programming Research as a good source code analysis tool for...
Sean Corfield
seancorfield
Online Now Send Email
Nov 7, 2009
12:17 am
32000
... If I'm understanding you correctly, no, you don't really have two places. You have a method that filters on whether something is paused or not - but it...
Sean Corfield
seancorfield
Online Now Send Email
Nov 7, 2009
8:18 pm
Messages 31971 - 32000 of 32000   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help