Integration test framework requires sorted data #1097
Labels
_complexity:medium
A task with a medium complexity that should be challanging
enhancement
New feature or request
_size:medium
A medium sized task that will take some time to complete
Problem
As part of the integration tets we only support textual comparisons, without understanding of the structure:
contains
checks if a given string exists somewhere in the fileequals_file
checks if the two files are identicalThe problem arises that we produce structured data where equality isn't defined by textual comparison. For example the two JSON objects
{"a":1,"b":2}
and{"b":2,"a":1}
are equal but not identical for textual comparison.This limits us to either dictate the exact output or to only rely on non structured data to compare.
Possible Solution(s)
json-sorted
codec using oursorted_serialize
function.The text was updated successfully, but these errors were encountered: