Logging within JUnit tests run by surefire-plugin

2006-07-27 Thread Eric Crampton
I'm writing unit tests for a library which uses commons-logging-api  
for its logging. I've noticed that, even if I don't include  
log4j.properties or the log4j jar on the classpath, logging is  
accomplished at the INFO level (and higher) to the console.


That's almost what I want. I'd like to be able to set the logging to  
a different level (say, while debugging a failing unit test).  
Furthermore, I'd really like the logging done during the execution of  
each unit test to go into surefire-report for that TestCase.


(Also, if there's a way to make it all run with log4j and log output  
to the appropriate surefire-report, that'd be great, too. It's nice  
to setup your appender pattern conversion like you want, too.)


Any ideas?

Thanks, all!
--Eric





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hibernate Archives (.har files) with Maven 2

2005-12-24 Thread Eric Crampton
JBoss supports deployment of special Hibernate Archives [1] (.har  
files). These are simply a .jar with a different extension and a  
special file in META-INF. Is there a way to have Maven 2 write out  
the file as a .har file? If I can generate them directly, can Maven 2  
cope with one of these as a first class citizen (still allowing  
dependency management, installation, and deployment)?


As it stands now, I just have an installation script rename the file  
prior to deployment in JBoss, but I'd like to avoid that step.


Regards,
--Eric

[1] http://docs.jboss.org/jbossas/getting_started/v4/html/hibernate.html



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]