View Single Post
Old 2009-11-25, 13:39   #9 (permalink)
gibman
Development Group Member
 
gibman's Avatar
 
Join Date: Oct 2006
Location: Aarhus
Posts: 1,251
Thanks: 13
Thanked 166 Times in 97 Posts

Country:

My System

Default

No not testers but programmers willing to write some unit tests.

a unit test is simply code that tests and verifies the correctness of other code (production code).
ex. does the GetPreferedAudioStreamIndex return the correct index value based on input params etc.

Having a bunch of solid unit tests both for the server and client parts will insure us a more stable product.
When modifying existing code that is unit tested gives us the benefit of knowing wether or not the modification broke the already existing unit tests.

Simply done by running all unit tests
If they fail, we either introduced a bug, or we need to adapt the existing unit tests to the new change.


install :
NUnit - Home
TestDriven.Net > Home

A standalone assembly/project should be created (TvPluginTests)
Then we could start by adding a single class to the project called "TvHomeTest.cs"

Add a reference to the nunit binaries (nunit.framework.dll) in that TvPluginTests project.
Also add a reference to the tvplugin assembly.

In the "TvHomeTest" class add ; using NUnit.Framework;

Now we're set.

The "TvHomeTest" should test all relevant functions within the TvHome class in tvplugin.
We want to focus on the GetPreferedAudioStreamIndex function.

Lots of tutorials on google.
NUnit: A tutorial Selva [Ne0] Samuel

/gibman

Quote:
Originally Posted by disaster123 View Post
OK :-) So now we need testers?
__________________
"It's all a big foodchain.
We eat shit and shit eats us."

Last edited by gibman; 2009-11-25 at 13:49..
gibman is online now   Reply With Quote