Unit Testing of vb.net project

Krishna Chauhan picture Krishna Chauhan · Mar 14, 2014 · Viewed 10k times · Source

I am asked to do testing of the project which I've made, the question is like that:

Testing (Test case designs are to be included separately for Unit testing, Integration testing, System testing; Reports of the outcome of Unit testing, Integration testing, System testing are to be included separately. Also, details of debugging and code improvement are to be included.)

The question is that how am I supposed to do unit testing and how can I show that on my project report.

Answer

Phillip Trelford picture Phillip Trelford · Mar 14, 2014

how am i supposed to do unit testing

The most popular unit testing frameworks on .Net are NUnit, xUnit and the Visual Studio Unit Testing Framework (also known as MSTest).

There is a built-in unit testing project type in Visual Studio, try new project and look in the Test section.

I'd recommend reading up on unit testing approaches. There is a lot of material out there in books and online. Key advice is to test behaviour, not methods.

how can I show that on my project report

It is common practice to set up continuous integration for software projects. Continuous integration tools like TeamCity can provide reports on unit test passes and failures through to code coverage on each build.