Skip to content
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

Use "test name" in filenames like screenshots #6

Open
ctron opened this issue Nov 3, 2021 · 0 comments
Open

Use "test name" in filenames like screenshots #6

ctron opened this issue Nov 3, 2021 · 0 comments

Comments

@ctron
Copy link
Member

ctron commented Nov 3, 2021

Currently there seems to exist no functionality to get the test name that is currently being processed. This however should be used to prefix things like filenames of screenshots.

One proposal I saw is to create a test wrapper (using a macro) which injects this into the test being run. This could be done using "thread local", to somehow inject this into the TestContext that we have anyway. So it would be available throughout the test.

I guess the fact that we are using async tests might make this a bit more complicated though.

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

No branches or pull requests

1 participant