Click here to Skip to main content
Click here to Skip to main content

Introducing Zanebug, Unit testing, Benchmarking and more

, 12 Sep 2005
Rate this:
Please Sign up or sign in to vote.
This article describes Zanebug a new Unit Testing Tool

Introduction

Perhaps many of you use NUnit. It's a great tool. But sometime ago  I wanted to make benchmarking and then I discovered Zanebug.

Since I get involved in the project, and now I want to introduce to some of the features that makes Zanebug a better alternative to NUnit.

Compatibility

Zanebug is compatible with NUnit, so you can work with it or Nunit at minimun effort. Just change your references.

Benchmarking

Zanebug introduces the Repeat attribute for methods, its works in this way:

using Adapdev.UnitTest;

[TestFixture]
class TestClass
{

[Repeat(100)]
[Test]
void TestCase()
{
   MethodToBenchmark();
}
}

This way your code will iterate 100 times. Zanebug will report the time elapsed and the resources used in the GUI.

Method Setup and Teardown

In NUnit you have Setup, and TearDown attributes, that do initialization and termination code for the TestFixture. A nice feature of Zanebug is Method specific setups and teardowns:

[TestFixture]
public class TestFixture	
{

	// Runs once at the beginning of SimpleTest only
	[TestSetUp("SimpleTest")]
	public void SpecificTestSetUp()
	{
		// setup code
	}

	// A Test
	[Test]
	public void SimpleTest()
	{
		// test code
	}

	// Runs once at the end of SimpleTest only
	[TestTearDown("SimpleTest")]
	public void SpecificTestTearDown()
	{
		// teardown code
	}
}

This feature is very useful and I missed on NUnit.

GUI

The graphical user interface of Zanebug is more friendly and has more information than NUnit.

Summary ScreenEven

Even, you can monitor system performance

Performance Monitor

Get Zanebug

There is a lot more on this tool, I suggest you to visit zanebug web site: www.adapdev.com/Zanebug.

Sean McCormack has been doing a great job with this tool and you should try it.



 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

ediazc
Web Developer
Chile Chile
Eduardo Diaz
personal blog

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web04 | 2.8.141022.2 | Last Updated 12 Sep 2005
Article Copyright 2005 by ediazc
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid