Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JUNIT & EXTENSIONS

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Author
Posts: 6049
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

--Mark
hershey@vaultus.com
 
You showed up just in time for the waffles! And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic