in reply to Re^2: How to make a module aware it is being tested?
in thread How to make a module aware it is being tested?

The module will have to work with an active / life database and the records to be inserted are parsed from real life example files which I cannot change.
Setting up a database for testing by copying a few records from the live database sounds like a better idea.
  • Comment on Re^3: How to make a module aware it is being tested?

Replies are listed 'Best First'.
Re^4: How to make a module aware it is being tested?
by CountZero (Bishop) on Nov 02, 2007 at 09:30 UTC
    Ultimately that will indeed be the best idea, but it means I have to redo all my tests to set-up a SQLite database for testing purposes. I have put it on my TODO list for version 2.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James