473,394 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

NUnit Documenting the test

I have an NUnit test plan with well over 500 tests.

I now need to produce a test plan document for these tests -
documenting them one by one with Word is a painfull task.

I was thinking that there must be a automated way of doing this - maybe
by using NDoc (although available formats don't seem particilariy
suited)?

Ideally the test plan would be produced with a section for every test
class with subsections for Setup/teardown and for each individual test.
This should all be produced in a single (or few) documents.

Does anyone have any ideas?

Nov 16 '05 #1
4 2047
By the way I've seen NUnit2Report and NUnitReport - nice tools but
these are for documenting the test results - I need something that
documents the tests.

For example, rather than:

myClassTest.Connection - Passed.

I need

myClassTest

Tests done on the class responsible for blah, blah,

Connection

Check that the class can connect sucessfully.

Nov 16 '05 #2
never tried it, but is there any reason that you can't just use the XMLDoc
documentation? Since NUnit tests are simply methods of a test fixture,
would this suffice for what you need?

Are you using NUnit tests for a formalized testing process? That's unusual.
(not right or wrong... I just haven't seen it done). The reason is that
unit tests are usually done by developers to (a) drive the development to a
good stopping point (TDD), and (b) insure that they know when a change to
functionality has broken something... they are not normally used for code
coverage, functional testing, or integration testing, where test plans are
more often used.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<ge*****************@yahoo.co.uk> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
By the way I've seen NUnit2Report and NUnitReport - nice tools but
these are for documenting the test results - I need something that
documents the tests.

For example, rather than:

myClassTest.Connection - Passed.

I need

myClassTest

Tests done on the class responsible for blah, blah,

Connection

Check that the class can connect sucessfully.

Nov 16 '05 #3
Nick,

Thanks for the reply.

Using the XMLDoc stuff seems to be the way to go so far. But I'm not
finding an easy way to do it. My test methods are all "doc"ed up
correctly but it means I have to write a complex bit of XSLT to turn
that into a single test doc.

I was just wondering if anyone had done something similar before to
give me a headstart?

My ideal would be an NUnit option to pick up the summary information
and store it in the results XML. That could then be picked up by
NUnit2Report and be displayed in the resulting test report.

We are using NUnit tests for the formal testing process. The project
being tested is a fairly complex class library and not an application.
So all we can really do is unit tests and a few simple usage scenarios.
What we can't do is anticipate the infinite number of ways the API
calls can be called by users using our API. So a functional or
integration test isn't really applicable to what we need to do (but
would be for the teams using our API). So for the unit tests and usage
scenarios NUnit works well.

I'd be interested to know how Microsoft deals with testing the .Net
framework.

Code coverage is tested & we ensure our NUnit tests cover all code
paths.

Cheers
Geoff

Nov 16 '05 #4
Hello Geoff,

I know that it can be tough to transform the XMLDoc stuff to a word
document. You may want to consider transforming the XML to RTF and then
loading it into Word. This article may help.
http://support.microsoft.com/default...b;en-us;311461

There may also be some commercial tools around. I did a quick msn search
and hit "Doc-o-matic" from toolsfactory (a bit pricey at $499, but if you
are writing code, this could pay for itself).

Your use of NUnit makes sense now that you explain that you are developing a
class library.

I cannot speak to details of internal methods used within MS to test the
framework. I can say that automation is used heavily.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<ge*****************@yahoo.co.uk> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Nick,

Thanks for the reply.

Using the XMLDoc stuff seems to be the way to go so far. But I'm not
finding an easy way to do it. My test methods are all "doc"ed up
correctly but it means I have to write a complex bit of XSLT to turn
that into a single test doc.

I was just wondering if anyone had done something similar before to
give me a headstart?

My ideal would be an NUnit option to pick up the summary information
and store it in the results XML. That could then be picked up by
NUnit2Report and be displayed in the resulting test report.

We are using NUnit tests for the formal testing process. The project
being tested is a fairly complex class library and not an application.
So all we can really do is unit tests and a few simple usage scenarios.
What we can't do is anticipate the infinite number of ways the API
calls can be called by users using our API. So a functional or
integration test isn't really applicable to what we need to do (but
would be for the teams using our API). So for the unit tests and usage
scenarios NUnit works well.

I'd be interested to know how Microsoft deals with testing the .Net
framework.

Code coverage is tested & we ensure our NUnit tests cover all code
paths.

Cheers
Geoff

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Peter Rilling | last post by:
My development team is using VS.NET with VSS integration. They are able to check in and out from within VS.NET. We also use NUnit for testing our libraries. Currently our entire solution is...
2
by: Sky Kim | last post by:
Hi, all. I've know NUnit for a while, now I try to use it. Most of application I develope is data base driven. I want to test data layer most with may input and checking the result, then compare...
2
by: d2d | last post by:
How are you doing there folks? I just have this newbie question about how to compile an NUnit test file from command line using "csc.exe" I installed NUnit 2.1 using *.msi file. I was...
5
by: Naveen Mukkelli | last post by:
Hi all, How can we use "NUnit" in socket programming. I mean, I'm writing a server program which accepts connection requests from the clients. I want to test the number of clients whenever a...
3
by: JJ | last post by:
Hi, In Nunit testing with asp.net are you guys creating a separate Test assembly for testing or integrating right in class themselves? Is anyone using a third party Unit Test addon for Nunit to...
6
by: Ray Tayek | last post by:
hi, i am preparing to teach a class in c++ and would like to intoduce some unit testing. i can make unit tests in c# using this dll and nant from the command line. i am using visual c++ 2005...
1
by: MD | last post by:
Hello I work in a .NET environment and I am about to create a development strategy. As part of this I am looking at implementing a testing tool to fit in with an iterative approach and NUnit...
20
by: Parag | last post by:
Hi, I am trying to figure out best testing tool for my project. I have narrowed down my requirements to two tools NUNIT and VSTS unit. But I have used neither and I have to use only one of them....
6
by: tchaiket | last post by:
Hey all, I'm using NUNIT to test our classes. However, I don't want to hard code test data into the NUNIT classes. For example, to test adding a new Client, I don't want to hard code the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.