You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sgalichkin what do you think?
By the way, I don't want to add another indentation level just everywhere with try-with-resources for TestScope. And there is no guaranteed destructor call in Java to help us to auto-close it in the end.
In both cases we do not need to use try-with-resources.
I like the second option because we may implement the class only once (in util namespace) and then just use a final object with @Rule annotation in all test files. Since junit creates test class object for each test, we may include calculating and printing of spent time for each test in TestWatcher as well.
On another hand, I like the idea of using TestScope (as a final object field) to print steps.
Is there an existing proposal for this?
Is your feature request related to a problem?
We have a lot of lines like this:
We might want to standartize this to avoid errors.
Describe the solution you'd like
I propose to make a helper class for this, the usage should look like this:
Alternatives you considered
No response
The text was updated successfully, but these errors were encountered: