VFP Unit


VFPUnit is a unit testing framework for Microsoft Visual Foxpro.
This program was inspired by JUnit, (a Java Unit testing program) and the concept of test-first development.

VFPUnit supports the design, implementation and maintenance phases of a project life cycle.

1) Ground-up Code Development.
    Creating unit tests unifies and aligns system requirements with code development.
    Feedback to the user base is improved by having access to clear, specific, system 'test points'.
    Documentation derived from unit tests follows closely with actual system behavior, and specifics of
    the system are easier to obtain than from static, design documents.

2) Planning and executing Refactoring.
    The ability to easily perform unit testing is a requirement of non-trivial refactorings.
    This framework provides an efficient mechanism for creating and performing both the tests driving the refactorings,
    and system wide impact (regression) tests.

3) Regression testing.
    The accumulation of unit tests is mandatory for long term system stability.
    This framework encourages the creation of those regression tests as an integral part of the development process,
    and so, Regression test suites are generated as a by-product of the process, rather than needing addition tasks
    to create them.

4) In addition to providing a framework for the creation and storage of 'unit tests', VFPUnit provides an
    interactive environment allowing for rapid investigation, code development, debugging and regression testing.
    By utilizing the native Foxpro environment, VFPUnit retains all the niceties you know and love,
    (intellisense, syntax coloring, ..,) to maximize programmer productivity.
Download:

Mr. Muhammad Dwyer has been kind enough to modify this code for use on VFP 8.0.
It has been tested and will run in both VFP 7.0 and 8.0


Special thanks to Muhammad for the support and effort (unpaid) that he has put into this project, as well as his enthusiasm toward test-first development.

Download VFPUnit.zip (for 7.0 and 8.0)


Updated Sat, Sept 13, 2003 4:45 pm 366 kb



The original version is still available for anyone interested.
Download VFPUnit.zip (original)

Updated Thurs, Mar 14, 2002 12:07 am 152 kb









Installation: Un-Zip VFPUnit.zip into a Directory of your choice. From within VFP, Do [your Directory name\]VFPUnit.app If the application is unable to locate the vfpunit DBC, you will be prompted, requesting you to locate the file 'vfpunit.dbc'. (please do so, all un-zipped files reside in the same location) The application will place a menu bar titled "VFPUnit", on the system main menu. Accessing that menu will allow you to open the main selection form, or exit VFPUnit.
Requirements:
  VFPUnit requires Visual Foxpro Version 7.0 (beta) or later.
Exercises:

These exercises strive to accomplish multiple objectives.
They are ambitious goals, but hopefully, useful ones.

Introduce you to the operation of this program
Introduce the test-first philosophy
Demonstrate the progression that occurs when developing from test-first.
Introduce Refactoring as an extension of test-first.

Disclaimer: All opinions are my own and I reserve the right to change my mind at any time.
They are influenced by the works of a great many other people, but I do not claim to represent them,
nor speak for them.  I wish to give them all full credit for their contributions, but I do not wish
to tarnish their work with a wrong interpretation on my part.

If you disagree with anything contained herein, great!  Good things come from debate.
My contract with the devil requires me to learn one new thing every day, and it doesn't hurt to stock up.

*note: The following list of links is not complete.  I expect to add several more, and edit the
existing ones, sometime before April 1, 2002.
  (after all, this is still beta.....grin.)


Documentation:

  Please familiarize yourself with VFPUnit by following the links below
			Evaluation Intro
			
			Evaluation Questions
			
			Screen Shots
			
			Intro 1
			
			Intro 2
			
			Intro 3
			
			Intro 4
			
			Tips and Tricks
			
			Critique
			

  updated Sat, Sept 13, 2003, 11:25 pm.
Hosted by www.Geocities.ws

1