trivago / cluecumber

Clear and concise reporting for the Cucumber BDD JSON format.
https://www.softwaretester.blog
Apache License 2.0
271 stars 88 forks source link

✽ symbol in exception stacktrace. #253

Closed grasshopper7 closed 3 years ago

grasshopper7 commented 4 years ago

Describe the bug The '✽' symbol is displayed in the stacktrace of the 'scenario-detail' page. This is on the line detailing the feature file location details. I am using the version 2.5.0, on windows.

To Reproduce Steps to reproduce the behavior:

  1. Run tests with a failing scenario.
  2. Click on failing scenario to get details.

Expected behavior The '?' or '✽' should be displayed. Seen the '?' in other reporting solutions but cucumber console displays '✽'. The later seems to be the correct, as per this - https://utf8-chartable.de/unicode-utf8-table.pl?start=9920&number=128&names=-&utf8=char. The relevant symbol is third from the bottom.

Maybe decoding the error_message byte array, by using the UTF_8 Charset could fix this.

Attachments symbol Cucumber JSON report : result": { "error_message": "java.lang.AssertionError: error\r\n\tat stepdefs.Stepdefs.throwException (Stepdefs.java:48)\r\n\tat ✽.Throw exception(classpath:stepdefs/experiment.feature:15)\r\n",

Additional context Add any other context about the problem here.

bischoffdev commented 4 years ago

Thanks for reporting this - will look into it for the next release.

bischoffdev commented 3 years ago

This is just taken from the json as is. So the error must be before the report generation which is out of Cluecumber's scope.