PureUnit -- automated testing framework for PureBasic
Posted: Sun Sep 09, 2007 11:34 pm
PureUnit is a testing framework with similar concepts as other xUnit frameworks like JUnit.
It can be used to test your procedures, includefiles or userlibraries or to
do so called "test driven development", where you first write the test for
a procedure and then implement the actual code until the test succeeds.
It comes as a simple set of macros for writing the testcode and a tool
to executed the tests and report the progress/status of the tests.
It is designed to run as a standalone GUI program, to be integrated into
the IDE as a tool or to run from the console, a script or a makefile.
PureUnit requires a 4.10 compiler or newer. (the beta versions will work)
Currently there is a Windows and Linux executable available. A version
for OSX will be provided when there is a 4.10 compiler for OSX.
This started as a small project for me to have a way to easily create and manage
testcodes for the PureBasic library commands, but as is sometimes the case
with my projects, i went into overkill mode and produced a quite useful piece
of software that i don't want to keep away from you guys
Note: We have not decided yet wether this will be a part of the official PB package,
or if i will just release it as a private sideproject. (means less support work).
For now consider this beta, as it has not been tested that intensly yet,
i will keep updating/bugfixing this in any case though, as we use it for our own
development work as well.
You can download the tool here: http://freak.purearea.net/tools/PureUnit03.zip
Please read the 'Readme.txt' and the example for instructions.
Any feedback is welcome...
It can be used to test your procedures, includefiles or userlibraries or to
do so called "test driven development", where you first write the test for
a procedure and then implement the actual code until the test succeeds.
It comes as a simple set of macros for writing the testcode and a tool
to executed the tests and report the progress/status of the tests.
It is designed to run as a standalone GUI program, to be integrated into
the IDE as a tool or to run from the console, a script or a makefile.
PureUnit requires a 4.10 compiler or newer. (the beta versions will work)
Currently there is a Windows and Linux executable available. A version
for OSX will be provided when there is a 4.10 compiler for OSX.
This started as a small project for me to have a way to easily create and manage
testcodes for the PureBasic library commands, but as is sometimes the case
with my projects, i went into overkill mode and produced a quite useful piece
of software that i don't want to keep away from you guys

Note: We have not decided yet wether this will be a part of the official PB package,
or if i will just release it as a private sideproject. (means less support work).
For now consider this beta, as it has not been tested that intensly yet,
i will keep updating/bugfixing this in any case though, as we use it for our own
development work as well.
You can download the tool here: http://freak.purearea.net/tools/PureUnit03.zip
Please read the 'Readme.txt' and the example for instructions.
Any feedback is welcome...