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 static and global environment setup/teardown in C++ unit tests #145

Open
wmiaw opened this issue Mar 10, 2017 · 0 comments
Open

Use static and global environment setup/teardown in C++ unit tests #145

wmiaw opened this issue Mar 10, 2017 · 0 comments
Assignees

Comments

@wmiaw
Copy link
Contributor

wmiaw commented Mar 10, 2017

Google Test supports static and global environment setup/teardown which will allow expensive initialization like the MockMslContext and other constants to be initialized one during unit tests instead of on every single test like it is currently implemented. This should help speed up execution of and reduce resource consumption of the tests.

See https://github.com/google/googletest/blob/master/googletest/docs/AdvancedGuide.md for more details.

@wmiaw wmiaw self-assigned this Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant