unloggedio / unlogged-sdk

Unlogged SDK for recording JAVA code execution
https://unlogged.io
Apache License 2.0
174 stars 16 forks source link

I am unable to observe the "Failing Case Gutter Icon" after implementing the recent code changes #27

Closed anudeepthi9 closed 4 months ago

anudeepthi9 commented 8 months ago

Describe the bug

After introducing modifications to the code, when the output differs from the previous version, the plugin is expected to seek confirmation before proceeding. However, the issue lies in the fact that only the passing case gutter is appearing, whereas the failing case gutter is not being displayed as anticipated.

Please refer the below attachment for issue screenshots.

[issues.pdf] (https://github.com/unloggedio/unlogged-sdk/files/13860855/issues.pdf)

Reproduction steps

1.Install Unlogged plugin in Intellij IDEA and add unlogged dependency based on your Java version. 2.Add Unlogged annotation above your main method of your project. 3.Run "mvn clean" command and start your application. 4.Click on blue icon gutter to execute the method. 5.The gutter will now turn pink, indicating that methods are now able to record. 6.Make required changes to the method, and the gutter will now display a bolt icon. 7.To verify the differences, click the bolt icon gutter; the gutter should now display the failed case symbol gutter. But this gutter is hidden from us; without the developer's confirmation, it rapidly transforms into a passing case gutter. ...

Expected behavior

After introducing modifications to the code, when the output differs from the previous version, the plugin is expected to seek confirmation before proceeding.

Additional context

When the result differs from the previous version after making changes to the code, the plugin is intended to seek confirmation from the developer by displaying failed case gutter before proceeding to passing case gutter.

artpar commented 4 months ago

This flow is revamped so this is fixed.