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

Provide context in Before/After methods and test cases #72

Open
nejtr0n opened this issue Jul 19, 2023 · 0 comments
Open

Provide context in Before/After methods and test cases #72

nejtr0n opened this issue Jul 19, 2023 · 0 comments

Comments

@nejtr0n
Copy link
Contributor

nejtr0n commented Jul 19, 2023

Is your feature request related to a problem? Please describe.
Some tests needs to bypass data between BeforeEach and Test case method.
For example we start appliction on random port in BeforeEach test case and we need that port
in test case to connect application.

Describe the solution you'd like
Common patter to pass data in go is context.Context.

Describe alternatives you've considered
Alternatively we could make getter to test parameters and pass data in it

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