Skip to content

Conversation

@murphp15
Copy link
Contributor

@murphp15 murphp15 commented Jun 15, 2023

Why

We were creating a mock just to tell it to call the real methods.
This is pointless.

What

Use a real instance instead.
It results in less code.
We are testing the product closer to how it will actually be used and it is easier for debugging.

How was this tested

Locally

Signed-off-by: murphp15 <murphp15@tcd.ie>
murphp15 and others added 2 commits June 15, 2023 11:40
Signed-off-by: murphp15 <murphp15@tcd.ie>
@murphp15 murphp15 enabled auto-merge (squash) June 15, 2023 08:44
@murphp15 murphp15 merged commit 3b3ecc7 into main Jun 15, 2023
@murphp15 murphp15 deleted the person/murphp15/use_real_class_when_testing_instead_of_mock branch June 15, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants