Michael Sorens
  • Member for 8 years
  • Last seen more than a month ago
4 answers
3 votes
268 views
how to perform code review among different types of developer?
2 votes

Ask ten different developers the purpose of "code review" and you will get eleven different answers. You can see that plainly amongst the answers and comments for this question. I agree with ...

View answer
4 answers
7 votes
2k views
Is separate QA team, redundant in development life cycle?
4 votes

I definitely like the points discussed by @FrustratedWithFormsDesigner, but I think it is useful to consider the larger universe of testing types when it comes to a complete software system. I am sure ...

View answer
1 answers
3 votes
75 views
Testing a class with "prerequisite" methods
4 votes

Based on what you describe, then, yes, it is a necessary evil to call the open method even though, as you say, a failure of open will inappropriately show failures of all the dependent tests. However,...

View answer
4 answers
13 votes
13k views
Is using nested function calls a bad thing?
5 votes

The concept underlying your question is so important I feel it needs another answer rather than just a comment (as I had started to do). The other 3 answers thus far provide some useful points of ...

View answer
3 answers
20 votes
4k views
Duplicating constants between tests and production code?
4 votes

What @Erik suggested--in terms of making sure you are clear on what it is you are testing--should certainly be your first point of consideration. But should your decision lead you to the direction ...

View answer
4 answers
5 votes
1k views
How does a Dependency Injection/IOC Container know which implementation to use?
2 votes

I think it provides some further color to this topic by mentioning the mechanisms of Autofac as well. Unlike CastleWindsor as mentioned by @Sign, Autofac returns whichever is registered last. I'm ...

View answer
12 answers
11 votes
2k views
How can I promote clean coding at my workplace?
2 votes

Though several useful answers have been posted here for awhile, I believe there is room for one more. My suggestion is, as others have said, to do code reviews. But it is worth mentioning again ...

View answer
2 answers
6 votes
922 views
Am I doing TDD wrong when multiple tests can fail for the same reason?
2 votes

I disagree with Infer-On's answer. Indeed, though not always achievable in practice, one should strive for having a single error cause just one test to fail. The main fallacy of your assumptions is ...

View answer
4 answers
1 votes
960 views
Looping Exhaustive Test Cases - A Good Practice?
0 votes

Your question is an important one. To restate more generically: should you test all possible inputs or just selected ones? As @cbojar points out, the former is typically either (a) not practical or (b)...

View answer
2 answers
7 votes
2k views
How to know what to test in TDD?
6 votes

The reason I think you have asked a great question here is that you really pinpointed the major impediment to delving into TDD--what do you test next? Answering that question is much easier with just ...

View answer
7 answers
134 votes
52k views
What should you test with unit tests?
71 votes

Among the plethora of answers thusfar no one has touched upon equivalence partitioning and boundary value analysis, vital considerations in the answer to the question at hand. All of the other answers,...

View answer