« 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 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
>
>  

 « Return to Thread: JUnit 4 XML schematized?