Posted By: Richard.Hein | Jan 17th, 2008 @ 1:50 PM
page 1 of 1
Comments: 7 | Views: 1457
Richard.Hein
Richard.Hein
... my guitar gently weeps ...
Has anyone here been asked to write documentation describing all the unit tests they have done on their code, for QA to review, with pass/fail signoffs on everything?

The reason I ask is because I've never been asked to do this kind of documentation, and it's not even "unit tests" they are asking about, what they really mean is some functional testing done on a web application that covers the use cases, but "not in as much detail" as the QA teams test cases.  I sent QA a draft of what I think they wanted, and asked for feedback "because I've never had to write this kind of documentation and I'm not sure if this is what you want", and got back a reply, "I'm surprised that you do not understand ... I'd expect a developer to know what unit tests are and to have done this for all your code in the past" with a CC to my project manager, which was basically trying to make me look bad, and that basic kind of attitude.  I replied that our definitions of "unit test" were completely different....  Wondering if there's any opinion, because I am really pissed off right now.
Richard.Hein wrote:
"I'm surprised that you do not understand ... I'd expect a developer to know what unit tests are and to have done this for all your code in the past".


That statement is simply rubbish. Most developers know what unit tests are but not everyone unit tests their code.  I'd just say that the guy has a bee in his bonnet about unit testing. He thinks its the best thing since sliced bread and everyone should do it.

Unit testing is still fairly new in my opinion. More and more people are taking it up but its not as popular as this guy seems to think. No doubt some people have been doing it for years but I'd say more just don't.

Another case of a little knowledge can be dangerous I think.

Personally, unless your company procedures call for including unit testing when you write code then I wouldn't worry about it.
Dr Herbie
Dr Herbie
Horses for courses
Richard.Hein wrote:
Has anyone here been asked to write documentation describing all the unit tests they have done on their code, for QA to review, with pass/fail signoffs on everything?

The reason I ask is because I've never been asked to do this kind of documentation, and it's not even "unit tests" they are asking about, what they really mean is some functional testing done on a web application that covers the use cases, but "not in as much detail" as the QA teams test cases.  I sent QA a draft of what I think they wanted, and asked for feedback "because I've never had to write this kind of documentation and I'm not sure if this is what you want", and got back a reply, "I'm surprised that you do not understand ... I'd expect a developer to know what unit tests are and to have done this for all your code in the past" with a CC to my project manager, which was basically trying to make me look bad, and that basic kind of attitude.  I replied that our definitions of "unit test" were completely different....  Wondering if there's any opinion, because I am really pissed off right now.


Sounds like a bumptious prat. CCing your PM was a ridiculous thing to do. He's probably a failed developer.  Have you talked to your PM about this?

What do your company processes say anout Unit Tests?

I've never fully documented Unit Tests (as opposed to commenting each to say what it tests) because Unit Test usually come from part of the spec, so all each one really needs is a reference to the spec that's being tested.
I've worked in scientific and medical software before now, FDA approved.  As far as our documentation was concerned tests come from spec, so a reference is all that's needed.

Herbie

ScanIAm
ScanIAm
On a scale of 1 to 10, people are stupid.
It's highly likely that the QA guy is looking for you to do his job.  He's read a few articles in the various trade mags about unit tests, and like others have pointed out, he's trying to make you look bad.

I wouldn't mess with him, head on, but instead, I'd document 20 or so unit tests and send them to him.  And by document, I mean press "///" and let .NET do the documentation for you.  Fill it out in intricate detail with only the most obvious of comments.  Things like:

i++;   // Add 1 to i

etc.

Be sure to send them back, (cc your PM) and ask him if that is the level and kind of documentation he is looking for.

Then, sleep with his wife.
harumscarum
harumscarum
out of memory

Man it is one of my pet peeves when people CC mgrs or other senior people. I had consulted on a project once where they gave us a template and said part of the process was to document the unit tests. The funny thing is I don't think anyone looked or cared about them. It was just something they read in the PM certification process so though it was necessary.

I do however require a unit test document for each feature in a sprint from the developers. However I am very upfront on what I expect to see in the documentation.

page 1 of 1
Comments: 7 | Views: 1457
Microsoft Communities