Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am doing legacy software programming in Visual Basic 6.0.

How do I unit test it?

share|improve this question

closed as too broad by GlenH7, MichaelT, gnat, Dan Pichelman, jwenting Oct 6 '14 at 6:59

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

Does your IDE support unit testing? If not, you can always create your own unit test framework in any programming language by creating assertion methods Assert.AreEqual, Assert.IsTrue, etc. and designing a custom build which runs them on every build.

You can also use one of the multiple unit test frameworks for Visual Basic 6.

share|improve this answer
Use one of the existing unit testing frameworks. Don't bother writing your own. – Bernard Feb 16 '12 at 0:38

Googling for "visual basic unit test" lead me to the wikipedia page on unit testing in all kinds of languages. Somewhere down the list is a table with tools for unit testing VB6 code. That should get you started.

share|improve this answer
+1 for "how to fish". I've had several times where I just typed the wrong terms into the search engine... – Wayne Werner Feb 23 '12 at 11:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.