AKSW / RDFUnit

An RDF Unit Testing Suite
http://RDFUnit.aksw.org
Apache License 2.0
150 stars 42 forks source link

CLI test reload fails (very unimportant) #8

Closed kurzum closed 10 years ago

kurzum commented 10 years ago

bin/rdfunit -d ../NLP2RDF/ontologies/nif-core/example.ttl -s ../NLP2RDF/ontologies/nif-core/nif-core.ttl

https://github.com/AKSW/RDFUnit/blob/master/rdfunit-core/src/main/java/org/aksw/rdfunit/sources/SchemaSource.java#L49

-> load ontology fails first, but results/tests is written with 0 tests -> on second run on CLI tests are loaded from cache

jimkont commented 10 years ago

yes this is a (minor) bug, you should clear your data/tests/Schema folder before you rerun or use the following CLI option: -ntc,--no-test-cache Do not load cached automatically generated test cases, regenerate them (Cached test cases are loaded by default)

kurzum commented 10 years ago

Ah, yes sorry, I didn't read the options, I once did: time bin/rdfunit -h real 0m4.151s user 0m8.494s sys 0m0.300s

But I didn't wait the full 8 seconds before the help was displayed, because I assumed the tool was broken. This is related to #10

jimkont commented 10 years ago

the delay is because of mvn install step. We discussed this some time ago but didn't get to fix it :)

https://github.com/AKSW/RDFUnit/blob/master/bin/rdfunit#L22

jimkont commented 10 years ago

fix here is to 1) skip caching if no tests are created 2) check file modification date