kazurayam / inspectus

The Inspectus library enables automated UI tests in Java/Groovy to perform "Visual Inspection" on top of the "materialstore"
Apache License 2.0
0 stars 0 forks source link

When no baseline is identified, FnChronosDiff produces a report where duplicating MaterialsProduct are listed #26

Closed kazurayam closed 2 years ago

kazurayam commented 2 years ago

You can reproduce this insident by https://github.com/kazurayam/inspectus/blob/0.5.3-alpha/core/src/test/java/com/kazurayam/inspectus/fn/FnChronosDiffTest.java

When no baseline is identified (for example, when the store was empty), FnChronosDiff produces the following report:

スクリーンショット 2022-11-14 11 12 58

there are 2 rows of apple, 2 rows of mikan, 2 rows of money. This looks odd.

The index file was like this:

b98e5156e70560cc337f0ea94107cc2cc12bc33f    png {"category":"diff", "left":"20221114_104219/00c21d303acfd5b8e65a40e9e1807bc70a8ad377", "ratio":"0.00%", "right":"20221114_110415/00c21d303acfd5b8e65a40e9e1807bc70a8ad377"}
b98e5156e70560cc337f0ea94107cc2cc12bc33f    png {"category":"diff", "left":"20221114_104219/00c21d303acfd5b8e65a40e9e1807bc70a8ad377", "ratio":"0.00%", "right":"20221114_110415/00c21d303acfd5b8e65a40e9e1807bc70a8ad377"}
218a844a283a2df172313f79f4f25f15c19acc95    png {"category":"diff", "left":"20221114_104219/aa7cc58a8fa035ff57f0ec8b73c972cda85fd1cf", "ratio":"0.00%", "right":"20221114_110415/aa7cc58a8fa035ff57f0ec8b73c972cda85fd1cf"}
218a844a283a2df172313f79f4f25f15c19acc95    png {"category":"diff", "left":"20221114_104219/aa7cc58a8fa035ff57f0ec8b73c972cda85fd1cf", "ratio":"0.00%", "right":"20221114_110415/aa7cc58a8fa035ff57f0ec8b73c972cda85fd1cf"}
8b2f0a37880e7ea261749b6ee72cc41d581fb4b7    png {"category":"diff", "left":"20221114_104219/ae18f6c6b64403dc30ea74c180759a05923b010e", "ratio":"0.00%", "right":"20221114_110415/ae18f6c6b64403dc30ea74c180759a05923b010e"}
8b2f0a37880e7ea261749b6ee72cc41d581fb4b7    png {"category":"diff", "left":"20221114_104219/ae18f6c6b64403dc30ea74c180759a05923b010e", "ratio":"0.00%", "right":"20221114_110415/ae18f6c6b64403dc30ea74c180759a05923b010e"}
kazurayam commented 2 years ago

It seems that the Zipper class

https://github.com/kazurayam/materialstore/blob/0.12.2/base/src/main/java/com/kazurayam/materialstore/base/reduce/zipper/Zipper.java

has a bug

kazurayam commented 2 years ago

... I can not reproduce this insident any longer ...