Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread Sven Barth
Am 22.08.2012 21:56, schrieb Martin: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool pas2ut which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least it

Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread Sven Barth
Am 22.08.2012 21:56, schrieb Martin: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool pas2ut which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least it

Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread michael . vancanneyt
On Wed, 22 Aug 2012, Martin wrote: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool pas2ut which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least

[fpc-pascal] Unit testing aid...

2012-08-22 Thread Michael Van Canneyt
Hi, for those that do unit testing, I committed a small tool pas2ut which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least it must be parseable). The output is very configurable, and should cover a lot of cases

Re: [fpc-pascal] Unit testing aid...

2012-08-22 Thread Daniel Gaspary
On Wed, Aug 22, 2012 at 2:08 PM, Michael Van Canneyt mich...@freepascal.org I would appreaciate feedback and suggestions. I believe could be interesting to have a similar tool to generate annotations to a unit(or set of units). The obvious example: insert calls to logging procedures at the

Re: [fpc-pascal] Unit testing aid...

2012-08-22 Thread Graeme Geldenhuys
On 22 August 2012 18:47, Daniel Gaspary dgasp...@gmail.com wrote: The obvious example: insert calls to logging procedures at the enter and exit of each method, procedure or function of a unit. This is already possible for some time. Take a look at the 'fpprofiler' project. I have a version of

Re: [fpc-pascal] Unit testing aid...

2012-08-22 Thread Martin
On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool pas2ut which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least it must be parseable). I just