[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: Test suite coordination
I find it very hard to author and maintain a test suite when it has gazillions of little files. I find it much easier if an entire test case or even collection of test cases can be collected in a single file. Especially when writing a test case for a valid pattern, it's helpful have the pattern, the instances that it is supposed to match and the instances it is supposed not to match in a single file. Since all are test cases are XML, it seems natural to me to use XML to represent a test case. This also allows us to add arbitrary amounts of metadata. <testCase> <id>empty1</id> <createdBy>James Clark</createdBy> <date>2001-06-15</date> <doc>Tests a single empty element.</doc> <validPattern> <element name="foo"> <empty/> </element> <validPattern> <valid> <foo/> </valid> <invalid> <foo>stuff</foo> </invalid> <invalid> <bar/> </invalid> </testCase> It is easy to write a XSLT stylesheet that will take a document with a collection of such test cases and generate a set of files. ----- Original Message ----- From: "Kohsuke KAWAGUCHI" <kohsuke.kawaguchi@eng.sun.com> To: <relax-ng@lists.oasis-open.org> Sent: Friday, June 15, 2001 2:42 AM Subject: Test suite coordination > > I have several test cases (valid grammar, invalid grammar, valid > documents, and invalid documents) which is named according to the > following rule: > > valid grammars: XXXXXXXX.rng > invalid grammrs: XXXXXXXX.e.rng > valid documents: XXXXXXXX.vYYYYY.xml > invalid documents:XXXXXXXX.nYYYYY.xml > > For example, "foo.v1.xml" is a valid instance for the grammar "foo.rng". > How is this naming convention? > > > My proposal is to set up a project in SourceForge, whose name would be > "relaxng", which is still available, and collect test suites under that > project. I also think that project might be a good place to host the > datatype interface. > > Is there anyone who has experience of setting up a project in > SourceForge? and willing to set up one for us? > > > P.S. is it possible to release the datatype interface as a committee > work product? > > -- > Kohsuke KAWAGUCHI +1 650 786 0721 > Sun Microsystems kohsuke.kawaguchi@sun.com > > > ------------------------------------------------------------------ > To unsubscribe from this elist send a message with the single word > "unsubscribe" in the body to: relax-ng-request@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC