Skip to content

Improve suspense test spies#3856

Merged
andrewiggins merged 1 commit into
masterfrom
update-suspense-tests
Jan 10, 2023
Merged

Improve suspense test spies#3856
andrewiggins merged 1 commit into
masterfrom
update-suspense-tests

Conversation

@andrewiggins

@andrewiggins andrewiggins commented Jan 9, 2023

Copy link
Copy Markdown
Member

I'm working a bug & fix that impacts these tests and it's hard to debug them cuz as written, the error message doesn't log what method the spy assertion failed for. In the screenshots below can find it stack trace but in another branch, I don't see that 🤷‍♂️. It also lacks call information. So this PR rewrites how we spy on lifecycles so the method name is included in errors and the error message includes information about the calls to the method!

Before:
image

After:
image

@coveralls

coveralls commented Jan 9, 2023

Copy link
Copy Markdown

Coverage Status

Coverage: 99.531%. Remained the same when pulling 524e102 on update-suspense-tests into d527b4b on master.

@andrewiggins andrewiggins merged commit 2ce7b0a into master Jan 10, 2023
@andrewiggins andrewiggins deleted the update-suspense-tests branch January 10, 2023 01:03
andrewiggins added a commit that referenced this pull request Jan 10, 2023
andrewiggins added a commit that referenced this pull request Jan 10, 2023
andrewiggins added a commit that referenced this pull request Jan 10, 2023
JoviDeCroock added a commit that referenced this pull request Jan 12, 2024
JoviDeCroock added a commit that referenced this pull request Jan 12, 2024
* backport #3871

* port test from #3884 functionality seems to work in v11

* backport #3880

* backport #3875

* backport #3862

* add todo for #3801

* backport #3868

* backport #3867

* backport #3863

* add todo for #3856

* backport #3844

* backport #3816

* backport #3888

* backport #3889
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants