On 25/03/13 14:17, Claude Warren wrote:
Michael,

I just spent some time reworking the Model tests in 2.10 so that they can
be run by other implementations of Model.  As far as I know there has not
been any similar work for dataset.

see
http://svn.apache.org/repos/asf/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/rdf/model/test/TestPackage.java

for an example of how to implement the TestingModelFactory and plug it into
the testing framework.

As I recall there is a directory of testing files that need to be included
(there is a defect for this that I have not had a chance to work on yet).

Do you mean the external scripted tests?

For tests in ARQ and in Jena core there are lot under testing/, in jena-arq and jena-core, that come from various working groups.

And once you have some scripted files, it;'s a convenient way to do a lot of other testing.

        Andy


https://github.com/Claudenw/JenaSecurity/blob/master/JenaSecurity/src/test/java/org/xenei/jena/security/contract/model/TestPackage.java
Shows how I used the tests in a 3rd party package.

Claude

On Mon, Mar 25, 2013 at 12:18 PM, Mike Grove <[email protected]> wrote:

I am wondering what would be the best choice to see if a custom
Model/Dataset worked as expected?  I have some custom tests, but I'm sure
those are a bit short on coverage.  So if there was some way I could re-use
the same tests Jena uses, that'd be helpful.

Thanks.

Michael





Reply via email to