« Return to Thread: JUnit 4 XML schematized?

Re: Re: JUnit 4 XML schematized?

by Alexandru Popescu ☀ :: Rate this Message:

Reply to Author | View in Thread

On Nov 28, 2007 12:53 PM, James Abley <james.abley@...> wrote:

>
> On 27/11/2007, Alexandru Popescu ☀ <the.mindstorm.mailinglist@...>
> wrote:
>  >
>  > On Nov 27, 2007 1:28 AM, dfabulich <dan@...> wrote:
>  > >
>  > > "Alexandru Popescu ☀" <the.mindstorm.mailinglist@...> wrote:
>  > > > I never found such a "standard". And imo it is a good idea as you may
>  > > > enhance the report by using your own information and still have the
>  > > > tools working. But if you go with a DTD/schema and validation then
>  > > > this will stop working.
>  > >
>  > > Well, I don't really want to make a strict validator. All I want to
>  > > do is define semantics.
>  > >
>  > > For example, when tests are marked with @Ignore, how should that be
>  > > represented in XML? TestNG puts a <skipped /> element... is that what
>  > > everybody should do? Where should the reason go? What if it's a
>  > > thrown SkipException?
>  > >
>  >
>  > I think @Ignore supports as attribute a string. Now considering that
>  > Java has native support for UTF-8 that "explanation/description"
>  > string will not always make it to an XML attribute, so I am suggesting
>  > a CDATA. This will also accomodate for the more advanced TestNG
>  > SkipException.
>  >
>  > For the rest it is just a matter on how to call the element: ignore,
>  > skipped, etc.
>  > I think I'm oke with either of the names, or if you have better ones
>  > please speak up.
>  >
>  > ./alex
>  > --
>  > .w( the_mindstorm )p.
>  > TestNG co-founder
>  > EclipseTestNG Creator
>  >
>  > > -Dan
>  > >
>  > >
>
>  Has anyone discussed this with the ANT devs? I think Stefan Bodewig
>  originally did the JUnitResultFormatter work, but IIRC Steve Loughran
>  may have been doing some work in there recently. Might be worth
>  pooling ideas.
>

Yes James, we are currently discussing this with Steve on the TestNG
mailing list. And as far as I heard the same topic is discussed also
on the Ant dev list.

./alex
--
.w( the_mindstorm )p.
 TestNG co-founder
EclipseTestNG Creator

>  Cheers,
>
>  James
>  

 « Return to Thread: JUnit 4 XML schematized?