harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura" <stepan.mish...@gmail.com>
Subject Re: [classlib] resource files for testing serialization - location and name?
Date Thu, 18 May 2006 03:14:09 GMT
On 5/17/06, Mikhail Loenko wrote:
>
> 2006/5/17, Stepan Mishura
> > Hi,
> >
> > During the last discussion no agreements were made - though it was very
> > useful for me. And I'd like to start new round for serialization
> testing. I
> > want to define rules for locating and naming resource files for
> > serialization. There is only agreement that we put all files for testing
> > serialization to folder:
> > modules/<module name>/src/test/resources/ and I'd like to work out a
> rules
> > where to locate ser files for a test inside that folder and how to name
> > them. I want to propose the following rules:
> >
> > 1)Path to resource files MUST match a test's package
> > I think it will be easier to find all test's resource files.
> +1
>
> >
> > 2)Resource file name MUST starts with a test's name
> > IMHO, it should be clear from resource file name which test use it
> +1
>
> >
> > 3)Resource file name MUST contain keywords pointing out to
> implementation
> > Keyword is intended to signal on which implementation a resource file
> was
> > generated – so we can track Harmony backward compatibility and
> compatibility
> > with RI. For example, for files generated on RI we may use 'golden'
> keyword
> > and for Harmony – 'harmony'.
>
> How do you mark broken resource files for kind of negative tests?


Does 'negative' keyword suite for you?

>
> > 4)Resource file name MUST contain some index.
> > In general, a test may use a set of resource files
>
> -0
> Do I have to use index if I have the only file? May be
> no index equals to index=0 ?


I think that both variants are possible.

Thanks,
Stepan.

Thanks,
> Mikhail
>
> >
> > To summarize: for test org.apache.harmony.tests.java.lang.SomeClassTestwe
> > have the following structure
> > modules/luni/src/test/resources
> >    org/apache/harmony/tests/java/lang
> >        SomeClassTest.golden.0.ser
> >        SomeClassTest.golden.1.ser
> >        SomeClassTest.golden.2.ser
> >        SomeClassTest.harmony.0.ser
> >        SomeClassTest.harmony.1.ser
> >
> > Thanks,
> > Stepan Mishura
> > Intel Middleware Products Division
> >
> > ------------------------------------------------------
> > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
> ------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message