I'm exploring Junit for testing and I can't seem to locate the answer for the following: Does it allow for logging of tests or setting the time for the tests to run? AND in Junit++, I am able to use a data repository through a "property file", but anyone using a database? I have read through the material on the junit site. Thanks for any help!--a true beginner
AFAIK the answers are "no, but you can do it." You can't set a time. However, you can create a cron job (or AT on Windows) to run the code at a specified time. I'm sure you could laso make a timer class or sleeping thread which can run JTest, as well. There is no immediate logging support. I suspect it was left out because they didn't want to commit people to a particular recording of the tests. You can always add in your own logging support. Maybe the TestDecorator would be appropriate for this (I haven't looked into them much). I would recommend using log4j or another standard logging API.