Questions regarding Nunit testing

  • Thread starter Thread starter Bob Hanson
  • Start date Start date
B

Bob Hanson

Hello All,

When using NUNIT testing, can you determine what code lines are
exercised when running the tests?

ie If someone has added code such as new methods, etc. can I determine
that a test does not exist for this code?

Thanks in advance,

Bob Hanson
 
The only way I've ever heard of ensuring coverage during testing is to
employ external coverage-checking tools. You then run you NUnit test
under the control of the coverage tool and it produces a report
indicating which methods / lines of code were executed and which
weren't.

I don't think you can do it with pure NUnit, though.
 
I agree with Bruce.
VisualStudio 2005 and Team System should let you see at a glance code
coverage of your tests. You might want to check TestDriven.NET (not
sure if that's the exact name), a VisualStudio add-on that you can add
to your current VisualStudio 2003 to run tests from VStudio. They might
have code-coverage features already, but I'm not sure.

HTH,
F.O.R.
 
Test driven .net does not have any tools for automatically creating unit
tests AFAIK.

--
--- 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.
 
Thanks for the replies.

I wanted to check if code coverage can be checked as it can be with Team
System but so far, it doesn't seem to be.

Thanks for your help,

Bob Hanson
 
Back
Top