tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: unit test debugging under Netbeans
Date Wed, 04 Jan 2012 23:09:13 GMT
2011/12/30 Brian Burch <brian@pingtoo.com>:
>>
>> Formatter is configurable since 7.0.24.
>
>
> Silly me! A ${test.formatter} property is defined immediately after
> ${test.name}! However, the runtests macro assumes I want usefile="true", but
> that prevents netbeans from intercepting the results.

You can convert usefile flag into a property as well,
  <property name="junit.formatter.usefile" value="true"/>

>
> I will think about whether I really want both formatters active on the same
> netbeans test run (as in my current version). If not, I need to work out how
> to inject a value without the user having to change it in build.properties,
> where it would affect non-netbeans test runs.
>

You may look here for an inspiration:
https://issues.apache.org/bugzilla/show_bug.cgi?id=52237

> Do unit test classes really get jar'd and run from the jar?

No. They are compiled into output/testclasses and are run from there.
I was confusing some things.

Still the "test-(bio|nio|apr)" targets depend on "deploy" target and
that one packs Tomcat classes into jars, along with doing a lot of
other stuff.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message