2008/12/27 Mark Kromis <span dir="ltr"><<a href="mailto:greybird@mac.com">greybird@mac.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div>Just a curiosity question, why push for gtest vs Boost Test or a different test suite?</div><div>I normally use Boost, and their test suite, so I'm more familiar with that. So I was wondering is one better then the other, or is it just that someone makes a patch for it?</div>
</div></blockquote><div><br>It seems that the original patch author is most familiar with gtest (as am I).  I looked at boost's testing facilities, as described here: <a href="http://gamesfromwithin.com/?p=29#boost">http://gamesfromwithin.com/?p=29#boost</a> and it seems to be quite more verbose for setting up test suites, with what looks like a bit of boilerplate code.<br>
<br>Compare this with the way new tests are written in gtest with TEST_F() macro -- see the original patch by Talin. Note that there's no suite-setup code in your unittest file in gtest, which is required in boost.  In fact, the only gtest-related code is the #include statement, not counting the common main() that's linked into every unittest binary -- unless you want to do some custom global-setup code, and hence you'll write your own main().<br>
</div></div><br>Misha<br>