Closed Davijde closed 1 year ago
I was a bit by surprise by my own documentation when reading
If a row from the candidate result-set has no matching key in the reference result-set, it’s not considered as an issue for the test and this row will be considered as successful.
and the code confirmed my doubts
Clearly sounds that the documentation is not aligned with the code ... it means that the truth is in the tests! Unfortunately, the tests are giving following answer: the code is right and the documentation is wrong. We've a specific test checking that candidate rows without matching keys in the reference should be reported as violations.
I'll be waiting your feedback and especially your use-case for considering that candidate rows without matching reference keys should be marked as successful. I can always change my mind!
Hi Seddryck, sorry for late response, my intent was to have a test that checks the following:
given two dataset A and B, all rows from A that have a Key match with B must have equal Value too. All non matching rows we don't care.
In the example above, only the two matching record would be compared, all others would be ignored and therefore the test would be successful.
Ok, I'll apply a fix in this case to align with the documentation.
Hi All, I'm trying to build a test using the lookup-matches assertion, based on the documentation:
Anyway, when I execute it trough Azure DevOps I get a failure with the following message
Am I missing something ?
This is the test template I'm using
Thanks in advance for any useful feedback :)