#817: BibClassify: clean test suite
-------------------------+--------------------
Reporter: simko | Owner: rchyla
Type: defect | Status: new
Priority: critical | Milestone: v1.0
Component: BibClassify | Version:
Keywords: |
-------------------------+--------------------
The test suite of BibClassify should be cleaned, for example:
- Some unit tests that should be moved to the regression test suite, since
they are mostly overall functional acceptance tests (e.g.
`http://arxiv.org/pdf/0808.1825` one), or they suppose a certain state of
the database (e.g. record ID 94 in `test_extract_using_recid()`).
- Some tests are currently too verbose even if they succeed:
{{{
Test cache accessibility/writability ... ERROR
bibclassify.ontology_reader:164 We cannot read/write into:
/opt/invenio/var/cache/bibclassify/test.rdf.copy.d
b. Aborting!
ERROR bibclassify.ontology_reader:164 We cannot read/write into:
/opt/invenio/var/cache/bibclassify/test.rdf.copy.db. Aborting!
ERROR bibclassify.ontology_reader:164 We cannot read/write into:
/opt/invenio/var/cache/bibclassify/test.rdf.copy.db. Aborting!
ERROR bibclassify.ontology_reader:549
file:///opt/invenio/etc/bibclassify/test.rdf.copy:1:0: no element found
ERROR bibclassify.ontology_reader:551 The ontology file is probably not
a valid RDF file. Assuming it is a controlled vocabulary file.
ERROR bibclassify.ontology_reader:549
file:///opt/invenio/etc/bibclassify/test.rdf.copy:1:0: no element found
ERROR bibclassify.ontology_reader:551 The ontology file is probably not
a valid RDF file. Assuming it is a controlled vocabulary file.
ok
}}}
- Some tests are regularly failing on a clean installation:
{{{
======================================================================
ERROR: bibclassify -k HEP.rdf http://arxiv.org/pdf/0808.1825
----------------------------------------------------------------------
[...]
Exception: Unable to locate the taxonomy: 'HEP.rdf'.
======================================================================
FAIL: bibclassify - extracting data from database (using recID to find
fulltext)
[...]
Missing: "<subfield code="9">BibClassify/HEP</subfield>"
}}}
--
Ticket URL: <http://invenio-software.org/ticket/817>
Invenio <http://invenio-software.org>