[jbosscache-dev] maven test output stops when System.out.println calls are encountered
Galder Zamarreno
galder.zamarreno at redhat.com
Tue Sep 4 07:45:52 EDT 2007
I'm not sure I understand what you mean by refresh and install the
support module.
Are you refering to
http://snapshots.jboss.org/maven2/org/jboss/cache/jbosscache-support
What is it?
I tried running the tests again and it seems like it downloaded a new
version of the module:
Downloading:
http://snapshots.jboss.org/maven2/org/jboss/cache/jbosscache-support/1.1-SNAPSHOT/jbosscache-support-1.1-20070822.1
Have I done it right? Do I need to do something else?
How can I check whether redirectTestOutputToFile has been disabled?
Jason T. Greene wrote:
> Refresh and install the support module, that should resolve it. Last
> week I disabled redirectTestOutputToFile because it causes way to many
> problems.
>
> Galder Zamarreno wrote:
>> Actually, tried changing System.out for logger and still had the same
>> issue. Ended up commenting that System.out call. I'll try to reproduce
>> this outside JBC to understand what circumstances lead to this.
>>
>> The only alternative is to grep the test results in the
>> target/sunfire-reports folder.
>>
>> Brian Stansberry wrote:
>>> Seriously though, thanks for the heads up on this. It's chasing down
>>> this kind of crap that's been consuming days of effort; good to know
>>> in advance where the land mines are.
>>>
>>> Brian Stansberry wrote:
>>>> Are you volunteering to replace the hundreds of such calls in the
>>>> JBoss Cache codebase. ;) If so, please move on and do JBoss AS when
>>>> you're done!
>>>>
>>>> Galder Zamarreno wrote:
>>>>> Hi,
>>>>>
>>>>> I've been running the cache loader migration tests via maven and I
>>>>> spotted that only the first test results would print to the
>>>>> standard output. The rest of tests would run, but the output would
>>>>> not appear.
>>>>>
>>>>> Digging a little bit, I found
>>>>> http://jira.codehaus.org/browse/SUREFIRE-315
>>>>>
>>>>> Basically, at the end of the first test run, whose results appear
>>>>> on the STDOUT (TransformingFileCacheLoaderTest),
>>>>> TestingUtil.recursiveFileRemove(targetLoc) is called which removes
>>>>> some files created during tests.
>>>>>
>>>>> Within TestingUtil.recursiveFileRemove(targetLoc) there's a
>>>>> System.out.println("Deleting file " + file); call which ends up
>>>>> messing test output. Removing it solves the problem.
>>>>>
>>>>> If everyone's happy with it, I would change this System.out.println
>>>>> call to a logger call.
>>>>>
>>>>
>>>>
>>>
>>>
>>
>
--
Galder Zamarreño
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat
More information about the jbosscache-dev
mailing list