[googletest] run tests in a separate environment (as in process or thread)

166 views
Skip to first unread message

Stefan Schwoegler

unread,
May 7, 2010, 4:38:48 PM5/7/10
to Google C++ Testing Framework
I'd like to have every test run in an "clean" environment to ensure
there is no test dependency. Is this currently possible with gtest?
Perhaps by utilizing an EventListener? Any thoughts would be much
appreciated.

Vlad Losev

unread,
May 8, 2010, 7:26:11 PM5/8/10
to Google C++ Testing Framework
Hi Stefan,
It would help if you elaborate on what kind of test dependency you are talking about. If you want to execute each test in a separate process, you can try using test sharding., although it is best if the code under test is abstracted of its dependencies so that tests can substitute them.

- Vlad
Reply all
Reply to author
Forward
0 new messages