tr00per / googletest

Automatically exported from code.google.com/p/googletest
0 stars 0 forks source link

Support for Test Isolation #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if GTest would support running each test resp. each test
case in a separate process to provide isolation. This could be done much
like death tests currently work - the fast (fork right there) and a safe
way (rerun the binary with exactly the one test/test case).

This would prevent one test case being able to mess up the whole run.
(segfaults, etc.)

I understand I could produce such behavior by using --gtest_list_tests in
conjunction with --gtest_filter, but that doesn't work too nice with
--gtest_output.

Original issue reported on code.google.com by schre...@gmail.com on 25 Nov 2008 at 1:30

GoogleCodeExporter commented 9 years ago
This of course would be an improvement, not a defect.

Original comment by schre...@gmail.com on 25 Nov 2008 at 1:32

GoogleCodeExporter commented 9 years ago
We considered this before, and decided against it as it makes the
implementation more complex without adding enough value.  There are
cases where you have to disable this forking behavior, so there needs
to be a way for the user to express the choice, which adds to the
complexity of the system.  We agree that test isolation is nice, but
think the price is too high.  Thanks.

If you are not convinced, please start a discussion on the discussion group.

Original comment by shiq...@gmail.com on 27 Nov 2008 at 12:04