Skip to content

Conversation

@lionel-
Copy link
Contributor

@lionel- lionel- commented Oct 28, 2025

So that downstream assertions can expose file and line location in the test files, instead of dummy_frontend.rs. This way we're able to click on the reported locations to jump to the relevant test failure.

So that downstream assertions can see supplied code
@lionel- lionel- requested a review from DavisVaughan October 28, 2025 12:38
@lionel-
Copy link
Contributor Author

lionel- commented Oct 28, 2025

Before:

Screen.Recording.2025-10-28.at.14.42.27.mov

After:

Screen.Recording.2025-10-28.at.14.41.16.mov

@lionel-
Copy link
Contributor Author

lionel- commented Oct 28, 2025

I'm going to use another approach recommended by @DavisVaughan: a track_caller attribute
https://doc.rust-lang.org/std/panic/struct.Location.html#implementations

@lionel- lionel- closed this Oct 28, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2025
@lionel- lionel- deleted the refactor/macro-assertions branch October 28, 2025 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants