clnsmth / soso

For creating Science On Schema.Org (SOSO) markup in dataset landing pages to improve data discovery through search engines.
https://soso.readthedocs.io/
MIT License
1 stars 0 forks source link

test: add verification test for conversion strategies #75

Closed clnsmth closed 7 months ago

clnsmth commented 7 months ago

Implement a verification test for results from 'main.convert' against a reference SOSO graph to ensure the system consistently produces the expected set of inputs and outputs for a given strategy. This step guarantees that any changes to the system do not alter its expected behavior.

This testing fills a gap left by the generalized testing of the strategy interface (only tests for null values and expected types).

Verification is facilitated by a static snapshot of 'main.convert' results taken at the time of the last change to strategy methods that result in a change in the final SOSO graph.

Note this approach requires updating the snapshot when a change occurs. To address the potential of running against an outdated snapshot, developers are reminded, in the developer docs, to take a new snapshot and manually inspect the expected changes in the SOSO graph before committing a new snapshot to the test suite.