1

I am doing legacy software programming in Visual Basic 6.0.

How do I unit test it?

Jalayn
  • 9,789
  • 4
  • 39
  • 58
Orion Blastar
  • 19
  • 1
  • 2

2 Answers2

5

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.

Arseni Mourzenko
  • 134,780
  • 31
  • 343
  • 513
3

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.

Paul Hiemstra
  • 2,155
  • 17
  • 14