.com
Hosted by:
Unit testing expertise at your fingertips!
Home | Discuss | Lists

VbUnit

The member of the xUnit family written to support Visual Basic 6.0. As far as I know, it was the first member of the xUnit family to support SuiteFixture Setup and also the one that introduced the concept of calling a Testcase Class a test fixture.

One of the main quirks of VbUnit is that when an Assertion Method fails the test, it writes the messages into the failure log immediately rather than just raising an error that is then caught by the Test Runner. The practical implication of this is that it is difficult to test Custom Assertions because the messages in the logs are not prevented by the normal Expected Exception Test construct. The workaround is to run the Custom Assertion Tests inside an "Encapsulated Test Runner".

Another quirk is that VbUnit is one of the few members of the xUnit family that is not free (as in beer). It is available from http://www.vbunit.org. There used to be a free version available and who knows, it may reappear some day. Another option for VB and VBA programmers is VB Lite Unit or for .Net programmers, NUnit, CsUnit and MbUnit.



Page generated at Wed Feb 09 16:39:54 +1100 2011

Copyright © 2003-2008 Gerard Meszaros all rights reserved

All Categories
Introductory Narratives
Web Site Instructions
Code Refactorings
Database Patterns
DfT Patterns
External Patterns
Fixture Setup Patterns
Fixture Teardown Patterns
Front Matter
Glossary
Misc
References
Result Verification Patterns
Sidebars
Terminology
Test Double Patterns
Test Organization
Test Refactorings
Test Smells
Test Strategy
Tools
Value Patterns
XUnit Basics
xUnit Members
All "xUnit Members"
ABAP Object Unit
ABAP Unit
CppUnit
CsUnit
CUnit
DbUnit
IeUnit
JBehave
JUnit
MbUnit
MSTest
NUnit
PHPUnit
PyUnit
RSpec
runit
SUnit
Test::Unit
TestNG
utPLSQL
VB Lite Unit
VbUnit
xUnit