473,769 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2074
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.Con nection - 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.goo glegroups.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.Con nection - 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******** *************@f 14g2000cwb.goog legroups.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
1971
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 checked into VSS along with all the associated projects. Many developers need to work on the same solution. The problem that I am having is getting a consistent unit test system setup so that it can easily be shared. Basically, in order to run...
2
1776
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 with database if it returns right value or not. To do so, I need to save all inputs and results as development, debugging goes on.. But, NUnit doesn't seem to support it. and It require wrong Test coding.
2
14243
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 following examples that came with NUnit and when I tried to compile Nunit test file here is the error i received: ========================================================================
5
4644
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 new connection is established. My Server code is : ---------------------------------------------------------------------
3
1821
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 test asp.net? What is it called, and how do you like what you are using? Any problems testing user controls with it? Any body have any real world examples of Nunit with asp.net that they can share. Just a skeleton layout would suffice. How many...
6
8380
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 express at home (the labs may have an earlier version). does anyone know how to tell visual studio to use this dll? thanks
1
1803
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 seems to be the logical choice. Although it works well with very simple classes, it seems to struggle when you are confronted with anything substantial - eg an application that accesses/updates an RDBMS. For instance :-
20
2026
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. Hence can someone who has used them before share his/her experience on them so that I can get a better idea and make a proper choice ? Any link or suggestions are also welcome. Thanks and Regards, Parag
6
6080
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 Client Name, phone number, email, etc. I want to the NUNIT to read this data from a file. This way I can change the data in a file easily and test various types of test data. I think this can be done using the CONFIG file that NUNIT reads. Is
0
9583
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10039
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6668
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5297
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3955
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3560
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.