I have a task to develop a test framework – or a test suite, if it makes more sense – that aims to validate properties over a large set of XML files.
Our codebase is basically like this:
<code>JSON input files -> Python scripts -> XML output files
</code>
<code>JSON input files -> Python scripts -> XML output files
</code>
JSON input files -> Python scripts -> XML output files
Where the Python scripts are responsible for performing complex transformation and calculation rules.
I thought about a couple ways of validating the XML files:
- Create a set of rules and assert them only on the output files. This one sounds more like a unit test.
- Perform a validation comparing input and output files. This one sounds more like an integration test.
Do these validations make sense? Am I missing a better way of doing it?
New contributor
Incognitex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.