<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Object Mentor Blog: Different Test Examples in C++ Using C++ CppUTest</title>
    <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Different Test Examples in C++ Using C++ CppUTest</title>
      <description>&lt;p&gt;Here are several versions of the same unit tests written in different styles using CppUTest: &lt;a href="http://schuchert.wikispaces.com/tdd.cpp.MovingTowardsStoryBasedExpressionOfTests"&gt;C++ Unit Test Examples.&lt;/a&gt; If you look near the bottom, you&amp;#8217;ll see what looks like story tests in C++. Shocking!&lt;/p&gt;


	&lt;p&gt;These are all based on Bob&amp;#8217;s &lt;a href="http://www.butunclebob.com/ArticleS.UncleBob.ThePrimeFactorsKata"&gt;Prime Factors Kata&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Thu, 26 Mar 2009 18:08:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:89bd9003-1951-4006-a8bf-5a67432361e3</guid>
      <author>Brett Schuchert</author>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest</link>
      <category>Schuchert's Scattered Synapses </category>
      <category>cpp</category>
      <category>c</category>
      <category>Unit</category>
      <category>Tests</category>
      <category>story</category>
      <category>cucumber</category>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by ???????</title>
      <description>&lt;p&gt;very good post
give more&lt;/p&gt;</description>
      <pubDate>Wed, 07 Jul 2010 06:54:49 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:c04d858c-e3cf-4cdf-8941-97288a45eddb</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-15836</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by FLV extractor</title>
      <description>&lt;p&gt;this is  the best one&lt;/p&gt;</description>
      <pubDate>Thu, 08 Apr 2010 01:16:59 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:e430007f-7499-406c-bd2e-1c8118e7a8d1</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-9343</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by Yaron</title>
      <description>&lt;p&gt;Do  you have more versions of the same unit tests?&lt;/p&gt;</description>
      <pubDate>Mon, 05 Apr 2010 06:05:42 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:17a88b64-3bc3-4e32-95c0-37094966fcf6</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-9211</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by games</title>
      <description>&lt;p&gt;Ty..&lt;/p&gt;</description>
      <pubDate>Mon, 05 Apr 2010 06:04:02 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:2ea2436f-94ad-4464-832a-d811d9871dcb</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-9209</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by ??????</title>
      <description>&lt;p&gt;Thanks for this post..&lt;/p&gt;</description>
      <pubDate>Mon, 05 Apr 2010 06:03:22 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:5c57288b-e800-4cea-84a7-16f44cb29655</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-9208</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by ?????? ????</title>
      <description>&lt;p&gt;thank you about it&lt;/p&gt;</description>
      <pubDate>Sun, 21 Mar 2010 15:11:14 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:de07bc7f-3683-4faf-b31f-4999a72f7940</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-8103</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by ????? ??? ??????</title>
      <description>&lt;p&gt;? ? &amp;#8211; 1200 ???? ? ???? ????? ? ?. ??? ? ??? ???? ? ???.&lt;/p&gt;</description>
      <pubDate>Sun, 14 Mar 2010 08:32:13 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:c4117882-b530-4876-bd67-63a76928e44e</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-7887</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by http://www.amigo-play.com</title>
      <description>&lt;p&gt;free games for everyone, adding new games every day!&lt;/p&gt;</description>
      <pubDate>Sun, 14 Mar 2010 08:31:26 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d8210890-25c5-446a-b20f-c5749d9341ab</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-7886</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by http://www.amigo-play.com</title>
      <description>&lt;p&gt;free games for everyone, adding new games every day!&lt;/p&gt;</description>
      <pubDate>Sun, 14 Mar 2010 08:30:43 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:ae747b23-5dd0-4de5-9c44-b514b9a3a13f</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-7885</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by http://www.amigo-play.com</title>
      <description>&lt;p&gt;games for everyone!&lt;/p&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:03:23 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:86b6f81c-f9ca-4116-978d-069d078d3359</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-7685</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by http://www.net-gaming.net</title>
      <description>&lt;p&gt;if you love play games&lt;/p&gt;</description>
      <pubDate>Fri, 15 Jan 2010 08:24:33 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:e503a164-7eb1-4cc1-9a75-cb938aa1be5b</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-6950</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by money</title>
      <description>&lt;p&gt;a lot to learn from your posts and comments on your site, thank you.&lt;/p&gt;</description>
      <pubDate>Fri, 08 Jan 2010 02:07:11 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:7b68aab9-05ef-4a3a-b4b7-75180e91b811</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-6832</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by gucci louis vuitton shoes</title>
      <description>&lt;p&gt;Welcome to Freshstyleshop, the hottest urban clothing site on the net! We offer great products from Gucci sneakers, prada sneakers, LV shoes, True Religion Jeans and many more! Our selection of products are always increasing for the fact that we have new items added weekly to our selection. All products on our site are already marked down 40-60% off retail price. Freshstyleshop also backs all its orders with a 110% satisfaction guarantee, making sure that our customers are left satisfied with the hottest products on the net.&lt;/p&gt;</description>
      <pubDate>Tue, 15 Dec 2009 21:16:54 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:cbba7c66-7afc-4af5-9cb0-25f89eb81360</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-5722</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by games</title>
      <description>&lt;p&gt;games for family .&lt;/p&gt;</description>
      <pubDate>Thu, 10 Dec 2009 02:31:55 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:920f5238-8773-404d-95f2-b7a2b9806e3b</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-5609</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by nike shoes hosting</title>
      <description>&lt;p&gt;I put the report method in as strictly a hook method. In the version I wrote on the plane ride, the report method stored information in a singleton object. I then registered an at exit function to summarize the results.&lt;/p&gt;</description>
      <pubDate>Thu, 03 Dec 2009 07:01:11 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:561b6da1-b5a7-4961-b10d-e48e2801b7b3</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-5373</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by olgames</title>
      <description>&lt;p&gt;great one&lt;/p&gt;</description>
      <pubDate>Sun, 22 Nov 2009 03:59:29 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:45511d68-9a6d-4eb0-99bc-eb0fbbd585e6</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-5190</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by games</title>
      <description>&lt;p&gt;10x&lt;/p&gt;</description>
      <pubDate>Sun, 22 Nov 2009 03:58:08 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:db063eae-8019-4304-92af-bb7b967bc12f</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-5188</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by tic-tac</title>
      <description>&lt;p&gt;Great &amp;#8211; thank u!&lt;/p&gt;</description>
      <pubDate>Tue, 17 Nov 2009 12:04:34 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:c56c506a-681d-4b40-9b47-6aaa88042ac9</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-5146</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by Inpatient Drug Rehab</title>
      <description>&lt;p&gt;Thank you very much for sharing such a useful post.&lt;/p&gt;</description>
      <pubDate>Tue, 27 Oct 2009 14:57:24 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:f2660292-a89d-459c-9038-bf901e6788d2</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-4907</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by ed hardy</title>
      <description>&lt;p&gt;I dont even remember how i reached your site but it doesnt matter, cause i&#8217;m so happy i found it, it really made me think, keep up the good work.&lt;/p&gt;</description>
      <pubDate>Mon, 05 Oct 2009 05:26:08 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:fd35d1ff-60af-4922-b906-8a3b4c1864b3</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-4372</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by ??????</title>
      <description>&lt;p&gt;wanderful post.. i love it!&lt;/p&gt;</description>
      <pubDate>Mon, 20 Jul 2009 15:51:24 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:41b9e17b-d859-45c0-986c-75fb4fbe73b4</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-3772</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by ??????</title>
      <description>&lt;p&gt;? ?? ?? ?? ????&lt;/p&gt;</description>
      <pubDate>Wed, 08 Jul 2009 02:52:44 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:0d05f881-3af7-4ecd-b38b-55483b0fd492</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-3688</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by Brett L. Schuchert</title>
      <description>&lt;p&gt;&lt;b&gt;Markus G&#228;rtner&lt;/b&gt; wrote:
&lt;blockquote&gt;
While reading through your example, I realized that the And method in your bdd first example does not call report &amp;#8230;
&lt;/blockquote&gt;&lt;/p&gt;


	&lt;p&gt;Thanks, distraction removed for any future reader.&lt;/p&gt;


	&lt;p&gt;In reality, I put the report method in as strictly a hook method. In the version I wrote on the plane ride, the report method stored information in a singleton object. I then registered an at exit function to summarize the results.&lt;/p&gt;


	&lt;p&gt;However, when I did this, CppUTest complained of leaked memory when I ran my unit tests. I have not gone back to fix that since I know in this case that the memory &amp;#8220;leak&amp;#8221; is by design &amp;#8230; I want to record what is happening and then report at the end of the life of the system. I could store the results in a temporary file and then report the contents at the end, but given I was just experimenting with forms of tests, it did not seem worth it.&lt;/p&gt;


	&lt;p&gt;I kept the report(...) method in there as a &amp;#8220;use&amp;#8221; of the passed in string. However, the intention is to make the BDD style more expressive. I didn&amp;#8217;t want to make it expressive without showing a candidate use of the first parameter (the message).&lt;/p&gt;</description>
      <pubDate>Sat, 28 Mar 2009 09:43:17 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:6757e88c-7b39-4752-8671-b05eb814a224</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-2991</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by Markus G&#228;rtner</title>
      <description>&lt;p&gt;While reading through your example, I realized that the And method in your bdd first example does not call report with the message. While reading through the second bdd example I realized that this was not intended, but distracted me while reading the first one a bit.&lt;/p&gt;</description>
      <pubDate>Sat, 28 Mar 2009 06:42:26 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:3e260ace-4210-4f64-bed6-ba7d09d157b0</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-2990</link>
    </item>
    <item>
      <title>"Different Test Examples in C++ Using C++ CppUTest" by Markus G&#228;rtner</title>
      <description>&lt;p&gt;While reading through your example, I realized that the And method in your bdd first example does not call report with the message. While reading through the second bdd example I realized that this was not intended, but distracted me while reading the first one a bit.&lt;/p&gt;</description>
      <pubDate>Sat, 28 Mar 2009 06:41:33 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d798739a-78f0-4dcb-a49e-0afc9b1bb732</guid>
      <link>http://blog.objectmentor.com/articles/2009/03/26/different-test-examples-in-c-using-c-cpputest#comment-2989</link>
    </item>
  </channel>
</rss>
