in reply to Re^5: Automatic generation of tests
in thread Automatic generation of tests

Of course if you edited the generated file(s) than you'd have problems later if you change something but I don't see any need to. You can have several test scripts for one module. So some files will be generated and some will be writen by hand. I don't see a problem.

I actually like this suggestion ... if the mini-language is simple enough it might make things easier.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature

  • Comment on Re: Re^5: Automatic generation of tests

Replies are listed 'Best First'.
Re^7: Automatic generation of tests
by adrianh (Chancellor) on Feb 26, 2004 at 12:02 UTC
    Of course if you edited the generated file(s) than you'd have problems later if you change something but I don't see any need to.

    I got the impression that DrHyde was proposing to edit the tests after generation from his OP - but I may be mistaken.

    So some files will be generated and some will be writen by hand. I don't see a problem.

    I just don't see the need for code generation. You can still have a mini-language and without separate code-generation of the tests.

    The only advantage I can see is not having to ship the generator with the tests, but this seems a minor inconvenience compared to the hassles of generating and regenerating the test suite.