What is Unit Testing?

BlitzMax Forums/BlitzMax Programming/What is Unit Testing?

BLaBZ(Posted 2012) [#1]
What is unit testing?

How it used with BlitzMAX?


ImaginaryHuman(Posted 2012) [#2]
http://en.wikipedia.org/wiki/Unit_testing

As far as I can tell it just means identifying a limited/fairly isolated chunk of code and testing it to prove that it works etc.

I think one idea in BlitzMax is that you do things object oriented so you can keep everything separated out and modularized so that you can then test individual parts.

Last edited 2012


dynaman(Posted 2012) [#3]
Testing the part that is getting worked on. If you change X in a large project (lots of coders, lots of modules or even seperate programs). The unit test is just to make sure the change works on the part you changed.

A full system test (goes by many names) means testing the change up and down the entire project.


Htbaa(Posted 2012) [#4]
Brucey has made a unit testing framework for BlitzMax: http://maximus.htbaa.com/module/bah/maxunit