156 reputation
3
bio website
location
age
visits member for 2 years, 11 months
seen Dec 12 '11 at 20:14

Sep
4
awarded  Teacher
Sep
1
comment Should coverage analysis be performed on test code?
While it may seem that this question fixates on code coverage, the deeper question is whether or not test code is as important as production code. If one thinks test code is as important as production code, it's straightforward to aim for high coverage (although, as has been pointed out and my rule of thumb above implies, 100% may not be a feasible goal).
Sep
1
comment Should coverage analysis be performed on test code?
A good point has been raised about coverage of meta-tests (tests for test helpers). I find a good rule of thumb is that if a function has a cyclomatic complexity of one, it's OK if it doesn't have a test. This rule of thumb applies to both test code (eg tests themselves) and production code (eg getters and setters). I should also point out that xUnit itself is a set of test helpers. I doubt anyone here would opine that it shouldn't have tests.
Sep
1
awarded  Editor
Sep
1
revised Should coverage analysis be performed on test code?
added 660 characters in body
Aug
31
awarded  Student
Aug
31
asked Should coverage analysis be performed on test code?
Aug
17
comment If a test mocks out one dependency but not another, is it still a unit test or does it become a functional test?
The definition I'm using is en.wikipedia.org/wiki/Functional_test. I understand the valid use of the other definition, but that's not what I mean with my question. I don't want this question to get bogged down by definitions. Use whatever term will fit (Google uses Small, Medium, Large, and Enormous).
Aug
16
comment If a test mocks out one dependency but not another, is it still a unit test or does it become a functional test?
Yes, the term 'functional test' is ambiguous. I'm differentiating between unit, functional, and system tests (all of which are functional tests since they're not non-functional tests) which differ in the scope of what they're testing. It's important to me because I feel names are important. As such, I tend to reflect the scope of the tests in the file's name.
Aug
16
asked If a test mocks out one dependency but not another, is it still a unit test or does it become a functional test?
Aug
16
answered Do I Need To Create Mock Classes For Every Class?
Aug
16
answered My team codes in one language, I want to test using another. What can go wrong?