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

Measuring duration of beforeAll, afterAll, beforeEach, afterEach #2187

Open
sebarys opened this issue Nov 17, 2022 · 1 comment
Open

Measuring duration of beforeAll, afterAll, beforeEach, afterEach #2187

sebarys opened this issue Nov 17, 2022 · 1 comment

Comments

@sebarys
Copy link

sebarys commented Nov 17, 2022

Hey!

Is it possible somehow to get information about tests beforeAll, afterAll, beforeEach, afterEach duration?

For some integration tests I have complex setup and want to be aware how long it takes as test execution duration seems not include execution of those steps.

Thanks in advance for any suggestions! As I couldn't find anything for now I just measure duration manually and log it in test logs but it is very hacky and hard later retrieve those times.

Regards,
Sebastian

@cheeseng
Copy link
Contributor

@sebarys Sorry for the late response, I don't really have a good solution, but perhaps Informer combined with Reporter can be a better options than logs, here's some info for Informer in its scaladoc:

https://www.scalatest.org/scaladoc/3.2.14/org/scalatest/Informer.html

Hope this helps.

Cheers.

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

2 participants