Skip to content

AssertJ soft assertions report not showing readable Actual and Expected values #347

Closed

Description

@blessan777

I'm submitting a ...

  • bug report

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

1.Apply allure-assertJ plugin version 2.10.0
2.Create any test with usage of SoftAssertions class
3.Run tests

SoftAssertions soft=new SoftAssertions();
soft.assertThat("HomePage").isEqualTo("HomePage).as("value should be "HomePage");

What is the expected behavior?

Based on normal assertion, the allure report should have the following text
assertThat 'HomePage'
isEqualTo 'HomePage'

What is the current behavior?

For Soft assertions, the allure report shows the below message

assertj$setup 'org.assertj.core.api.ProxifyMethodChangingTheObjectUnderTest@d816d61 org.assertj.core.api.ErrorCollector@728a0775'
isEqualTo$accessor$5laLEfVY 'HomePage'

Please tell us about your environment:

Allure version 2.2.0
Test framework cucumber-java 4.3
Allure integration allure-assertj 2.10.0
allure-cucumber4-jvm 2.9.0
Generate report using allure-maven@2.10.0

Activity

  1. added a commit that references this issue on Sep 8, 2019
    2f0b143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions