kazurayam / materialstore

A domain-specific file system to store "materials" (screenshots, HTML, JSON, XML) collected during End-to-End testings using Selenium WebDriver etc. Features to make "diff" and compiling HTML reports are also included. This is written in pure Java8
Apache License 2.0
0 stars 0 forks source link

When `inspector.reduce(prepared)` failed, it should print the pretty-printed string of the `prepared` object in the StackTrace message #164

Open kazurayam opened 2 years ago

kazurayam commented 2 years ago

inpector.reduce(prepared) tends to fail due to the given MProductGroup prepared object has unexpected status.

When it fail, we need to look at how the prepared object's contents.

v0.4.7, I have to insert a debug print a statement like

println JsonOutput.prettyPrint(prepared.toString())

It is convenient if it print the string representation of the MProductGroup in the StackTrace.

kazurayam commented 2 years ago

0.4.8

kazurayam commented 2 years ago

not enough

kazurayam commented 2 years ago

At https://github.com/kazurayam/materialstore/issues/259

a digram of MProductGroup object is compiled

image

This diagram can express a lot of things when the Inpsector.reduce() failed