Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

delb integration tests

This repository serves several tests for delb against a variety of XML documents, mostly TEI encodings. They are supposed to validate major code change proposals and ensure functionality before releases.

All test corpora preparations and tests are stuffed into a cli application dit, use its --help output and the Justfile recipes as references to get acquainted (Just run just for a recipes list).

Getting started

The get-ready recipe installs the application and fetches the tests that are included as git submodules.

It doesn't install the delb package / source tree that is supposed to be tested.

Test corpora

Not yet included

Tests

All tests can be invoked with just run-tests.

location-paths

This verifies that an XPath query that targets a TagNode.location_path attribute yields exactly that TagNode instance. In order to save time the default --sample-volume is 25, like in percent. It affects both the number of used random files and tested nodes.

lxml-model-concordance

The same document is parsed to a delb and an lxml representation. Both are then compared to have identical contents. This relies on the assumption that lxml / libxml2 are parsing correctly.

parse-serialize-equality

This validates that different serializations are parsed back to the identical document representation. See delb's test_serialization::test_transparency test for a more elaborated description.

About

Integration tests suite for delb-py

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages