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

global testsetup #81

Open
lmiq opened this issue Jul 10, 2024 · 1 comment
Open

global testsetup #81

lmiq opened this issue Jul 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lmiq
Copy link
Contributor

lmiq commented Jul 10, 2024

It would be nice to have a global testsetup, which applies to all test items and replaced the default global setup (for instance, that optionally does not bring all package exported names into scope, by import MyPkg instead of using MyPkg.)

Please let me know if I can do anything to help.

@davidanthoff davidanthoff added the enhancement New feature or request label Jul 10, 2024
@juliohm
Copy link

juliohm commented Aug 24, 2024

I believe that we can workaround this issue with @testsnippet nowadays, but the snippet is run every time on every @testitem if I understand it correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants