Replies: 1 comment
-
Here is a related bug for Go language support: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
We can identify the target fields of the Object, which states should be tested.
Then we can add assertions only for them.
That allows to avoid reflection for creating expected Objects.
Suggested behavior
For example:
There is a method call that transforms initial Object(s) - and changes only particular fields:
assertNotEquals(expectedValue, actualObject.fieldName)
only for the changed fields.Currently
Currently we get a test with
assertEquals(expectedObject, actualObject)
, that compares actual and expected Objects totally.expectedObject
is often created using Reflection, setting fields that we do not need to test.Beta Was this translation helpful? Give feedback.
All reactions