Feature request: Expose test name as an environment variable #2784
liranco
started this conversation in
Feature requests
Replies: 2 comments
-
|
Yeah, seems pretty reasonable to me! I think we should expose basically the set of things exposed by USDT probes: https://docs.rs/nextest-runner/latest/nextest_runner/usdt/struct.UsdtTestAttemptStart.html Would you like to prepare a PR for this? See for where the logic to set environment variables lives. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Created a new PR: #2797 Will be happy to make any required modifications :) |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
Writing test assets with the test name
Proposal
It can be useful if nextest will expose the current test's name as an environment variable (perhaps
NEXTEST_TEST_NAME).This is useful when tests output assets, since the test name can be used as the asset's filename.
Alternatives
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions