uPortal IRC Logs-2007-02-20

[00:21:42 CST(-0600)] * esmaway (n=esm@esm.qis.net) has joined ##uportal
[00:21:42 CST(-0600)] * EricDalqui[away] (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[00:21:42 CST(-0600)] * Tuomaz_ (n=fredrik@kaffe.umdc.umu.se) has joined ##uportal
[10:34:21 CST(-0600)] * esm (n=esm@esm.qis.net) has joined ##uportal
[11:37:15 CST(-0600)] <EricDalquist> any idea why mvn is ignoring the log4j config in my test/resources and setting the log level to WARN when running the tests
[11:53:16 CST(-0600)] <esm> hmm
[11:53:37 CST(-0600)] <EricDalquist> annoys me since some of the tests end up spewing warn/error messages
[11:53:49 CST(-0600)] <EricDalquist> plus the coverage reports aren't as complete as they should be
[11:54:11 CST(-0600)] <esm> there are problems with the coverage reports - they can be inaccurate actually
[11:54:16 CST(-0600)] <EricDalquist> I'm trying to get it to use this nice complicated config:
[11:54:16 CST(-0600)] <EricDalquist> log4j.rootLogger=TRACE, stdout
[11:54:17 CST(-0600)] <EricDalquist> log4j.appender.stdout=org.apache.log4j.varia.NullAppender
[11:55:55 CST(-0600)] <esm> ooooo 2.0.5 is out
[11:58:03 CST(-0600)] <EricDalquist> spring?
[11:58:04 CST(-0600)] <esm> do you have log4j listed as a dependency?
[11:58:07 CST(-0600)] <EricDalquist> yeah
[11:58:07 CST(-0600)] <esm> maven 2
[11:58:10 CST(-0600)] <EricDalquist> as a test dependency
[11:58:14 CST(-0600)] <esm> k
[12:02:06 CST(-0600)] <EricDalquist> well per some requirements here we should have a DBCP like connection pool for LDAP DirContexts that plugs into spring-ldap by the end of the week
[12:24:10 CST(-0600)] <esm> hmm no idea why log4j wouldn't be working for you
[12:24:35 CST(-0600)] <esm> in my project i have log4j, commons-api as <compile> scope
[12:25:03 CST(-0600)] <esm> and I can use this log4j.properties from src/test/resources no problem:
[12:25:08 CST(-0600)] <esm> log4j.rootLogger = ALL, void
[12:25:08 CST(-0600)] <esm> log4j.appender.void = org.apache.log4j.varia.NullAppender
[12:25:08 CST(-0600)] <esm> log4j.appender.stdout = org.apache.log4j.ConsoleAppender
[12:25:08 CST(-0600)] <esm> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
[12:25:09 CST(-0600)]

<esm> log4j.appender.stdout.layout.ConversionPattern=%-3p [%t]: %c

Unknown macro: {3}

%d %m %n


[12:25:15 CST(-0600)] <EricDalquist> it works in eclipse just not when running the test lifecycle
[12:25:26 CST(-0600)] <EricDalquist> it seems like it is picking up some other log4j config
[12:25:32 CST(-0600)] <esm> i'm running 'mvn test'
[12:25:45 CST(-0600)] <esm> and i have a different, separate lo4j config in src/main/resources
[12:25:52 CST(-0600)] <esm> but it is using my test one
[12:25:55 CST(-0600)] <EricDalquist> interesting
[12:26:02 CST(-0600)] <EricDalquist> I just noticed it does work for test
[12:26:17 CST(-0600)] <EricDalquist> I bet its an issue with the code coverage plugin
[12:26:32 CST(-0600)] <esm> so how were you running your tests before?
[12:26:36 CST(-0600)] <EricDalquist> I see it when I run mvn site
[12:26:44 CST(-0600)] <esm> if you weren't using mvn test
[12:26:54 CST(-0600)] <EricDalquist> I didn't really look to see exactly where in the site generation it was coming from
[12:27:33 CST(-0600)] <esm> oh so you see all the debug output in your generated site, but you don't want it there
[12:27:49 CST(-0600)] <EricDalquist> I see WARN level it looks like
[12:27:52 CST(-0600)] <EricDalquist> but yeah
[12:28:15 CST(-0600)] <EricDalquist> I'd rather it use that same noop log4j config when running the tests at any point in time
[12:32:10 CST(-0600)] <esm> I don't have much experience dealing with test case output and site generation.
[12:32:55 CST(-0600)] <esm> i normally don't publish the site until the tests pass, so I don't pay much attention to what goes up on the site, knowing that 'mvn test' is ok
[12:35:24 CST(-0600)] <esm> Anyway, I think that sometimes the surefire report HTML output is bogus.
[12:35:49 CST(-0600)] <esm> if you go to <generatedsite>/surefire-report.html#Test_Cases
[12:36:16 CST(-0600)] <esm> It lists all your test case objects, and all of the tests executed on each object
[12:38:27 CST(-0600)] <esm> on a project i'm working on it will list a test case object, and it lists 25 tests for it. the object only has one test.
[12:38:36 CST(-0600)] <esm> not 25.
[12:38:50 CST(-0600)] <esm> i have no idea why the surefire report plugin thinks there is 25.
[12:39:24 CST(-0600)] <EricDalquist> weird
[13:36:08 CST(-0600)] * lescour (n=JBouncer@adsl-38-10-98.tulsaconnect.com) has joined ##uportal
[15:53:06 CST(-0600)] <lescour> can anyone get to the uportal mail list archives?
[15:53:25 CST(-0600)] <EricDalquist> yes: https://list.unm.edu/archives/jasig-portal.html
[15:54:03 CST(-0600)] <lescour> i think my tube is cloggged..it times out for me
[15:54:22 CST(-0600)] <EricDalquist> (smile)
[15:55:02 CST(-0600)] <EricDalquist> http://dir.gmane.org/gmane.comp.java.jasig.uportal
[15:55:15 CST(-0600)] <EricDalquist> that has more recent activity
[15:55:21 CST(-0600)] <EricDalquist> I can't remember when we got it setup
[15:56:17 CST(-0600)] <lescour> ahh..thx, i can get there
[16:00:30 CST(-0600)] <EricDalquist> np
[16:23:45 CST(-0600)] * esm (n=esm@esm.qis.net) has joined ##uportal
[17:50:39 CST(-0600)] * andrew_petro_ubu (n=apetro@uni1.unicon.net) has left ##uportal
[18:43:18 CST(-0600)] * esm (n=esm@esm.qis.net) has joined ##uportal