Skip to content

Feature: expose srcref of tests in reporters #2220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kubajal
Copy link
Contributor

@kubajal kubajal commented Aug 15, 2025

Currently, there is no way to report the line number of tests in reporters. This PR enables that.

This PR follows the logic of e.g. LocationReporter which prints the srcref of all expect_* assertions. It extends this behavior by also reporting locations of test_that, describe and it expressions.

With minimal effort, this PR enables #2184.

@kubajal kubajal force-pushed the feature/expose_srcref_in_start_test branch from 4be00d6 to 96489ce Compare August 15, 2025 15:05
@kubajal kubajal force-pushed the feature/expose_srcref_in_start_test branch 3 times, most recently from 817eb5c to 2ee85c7 Compare August 16, 2025 08:18
@kubajal kubajal marked this pull request as ready for review August 16, 2025 09:43
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.

1 participant