<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/cppunit/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/cppunit/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 22 May 2021 06:06:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cppunit/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>CppUnit Code coverage Tool</title><link>https://sourceforge.net/p/cppunit/discussion/37108/thread/3d2343a6/?limit=25#3d1a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I wanna use it for my new project here but the main issue for me is how to run this software on my project please help me by sharing its complete process you can see my &lt;a class="" href="https://waterheateradvisors.com/how-to-reset-navien-tankless-water-heater/" rel="nofollow"&gt;blog&lt;/a&gt; here for further details.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fdbcv jyhtgh</dc:creator><pubDate>Sat, 22 May 2021 06:06:57 -0000</pubDate><guid>https://sourceforge.net16017adfa6ad6937f76d1b05ef4015fa97361a72</guid></item><item><title>Unable to link CPPunit test</title><link>https://sourceforge.net/p/cppunit/discussion/37108/thread/5fa04ad163/?limit=25#f357</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Experiencing the exact same issue when linking to libMesh unit tests on Ubuntu 16.04 with manually built cppunit (e.g. &lt;code&gt;configure; make; make install&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Lindsay</dc:creator><pubDate>Fri, 13 Sep 2019 18:06:54 -0000</pubDate><guid>https://sourceforge.netafabdf90567fd071d68de0120c72744c338a363c</guid></item><item><title>Unable to link CPPunit test</title><link>https://sourceforge.net/p/cppunit/discussion/37108/thread/5fa04ad163/?limit=25#dae0</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello;&lt;/p&gt;
&lt;p&gt;I'm getting an error when attempting to link a CPPunit test (using Netbeans on RHEL).  Another developer is able to link the test successfully, and we both have the same cppunit and cppunit-devel packages installed, so I'm not sure what's going on here.  The error is:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;build/Debug/GNU-Linux/tests/tests/abcTest.o:(.rodata._ZTIN7CppUnit17AdditionalMessageE[_ZTIN7CppUnit17AdditionalMessageE]+0x10): undefined reference to `typeinfo for CppUnit::Message'
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Any ideas?  Thanks in advance.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Clark</dc:creator><pubDate>Mon, 22 Jul 2019 16:07:07 -0000</pubDate><guid>https://sourceforge.net6d245388ba3dd10ad2117473a762e674864f56cc</guid></item><item><title>Problem with registration of testsuite</title><link>https://sourceforge.net/p/cppunit/discussion/37107/thread/44f06aae/?limit=25#3ebf</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I had this same issue. This was a good explanation and it looks like the code has been updated to include Portability.h. Unfortantely that wasn't the problem. Turned out to be something completely different. This macro, CPPUNIT_TEST_SUITE_REGISTRATION, is used in my source file but the issue was in the header file. There was  a missing semi-colon at the end of my class declaration. The missing semi-colon wasn't even reported as a compilation error, only the errors with the macro. To discover the problem, I took my test down to a skeleton program and commented out the call to CPPUNIT_TEST_SUITE_REGISTRATION in the source file. This is when the compiler reported the missing semi-colon. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cmaynard</dc:creator><pubDate>Fri, 14 Jun 2019 17:24:50 -0000</pubDate><guid>https://sourceforge.net784a9482d15a995a57d6ab7ec12068aa6042dda6</guid></item><item><title>Problem with registration of testsuite</title><link>https://sourceforge.net/p/cppunit/discussion/37107/thread/44f06aae/?limit=25#e347</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm 7.5yrs late to this post, but I've recently come across the same problem trying to get CppUnit up and running using Cygwin on Win10.&lt;br/&gt;
The short answer  is: before using CPPUNIT_TEST_SUITE_REGISTRATION I had to:&lt;br/&gt;
&lt;code&gt;#include &amp;lt;cppunit/Portability.h&amp;gt;&lt;/code&gt;&lt;br/&gt;
I put it in my &lt;code&gt;test.cpp&lt;/code&gt; file just before I included &lt;code&gt;test.h&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;My explanation is as follows:&lt;br/&gt;
If you &lt;code&gt;#include &amp;lt;cppunit/extensions/HelperMacros.h&amp;gt;&lt;/code&gt; and if you follow the files included within HelperMacros.h, you will include a file called &lt;code&gt;cppunit/Portability.h&lt;/code&gt;.&lt;br/&gt;
In or around line 120 you'll see &lt;code&gt;# define CPPUNIT_NS CppUnit&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now if we deconstruct (or substitute) the macros in &lt;br/&gt;
&lt;code&gt;CPPUNIT_TEST_SUITE_REGISTRATION( ActionManualDrive_test );&lt;/code&gt;&lt;br/&gt;
 we would get something like:&lt;br/&gt;
&lt;code&gt;//static CPPUNIT_NS::AutoRegisterSuite&amp;lt; ActionManualDrive_test &amp;gt;       CPPUNIT_MAKE_UNIQUE_NAME(autoRegisterRegistry__ );&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I can subsitute 'anyAuldName' for the CPPUNIT_MAKE_UNIQUE_NAME macro, since it's job is to generate a unique name:&lt;br/&gt;
&lt;code&gt;//static CPPUNIT_NS::AutoRegisterSuite&amp;lt; ActionManualDrive_test &amp;gt; anyAuldName;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;CPPUNIT_NS as we say was defined as CppUnit in Portability.h:&lt;br/&gt;
&lt;code&gt;//static CppUnit::AutoRegisterSuite&amp;lt; ActionManualDrive_test &amp;gt; anyAuldName;&lt;/code&gt;&lt;br/&gt;
But the compiler is still complaining. What it isn't exactly saying is that it doesn't know what  &lt;code&gt;CppUnit&lt;/code&gt; is.&lt;/p&gt;
&lt;p&gt;So, without &lt;code&gt;#including &amp;lt;cppunit/Portability.h&amp;gt;&lt;/code&gt; the compiler doesn't know what &lt;code&gt;CPPUNIT_NS&lt;/code&gt; is.&lt;br/&gt;
At this point in my code the compiler still doesn't know &lt;code&gt;CppUnit&lt;/code&gt; is a namespace. Perhaps by luck or naivety my test.h file has the following include tree:&lt;br/&gt;
test.h: &lt;code&gt;#include &amp;lt;cppunit/extensions/HelperMacros.h&amp;gt;&lt;/code&gt;&lt;br/&gt;
HelperMacros.h: &lt;code&gt;#include &amp;lt;cppunit/TestCaller.h&amp;gt;&lt;/code&gt;&lt;br/&gt;
TestCaller.h: calls &lt;code&gt;CPPUNIT_NS_BEGIN&lt;/code&gt;, which is defined in Portability.h as:&lt;br/&gt;
&lt;code&gt;# define CPPUNIT_NS_BEGIN namespace CppUnit {&lt;/code&gt;&lt;br/&gt;
And this is the point where the compiler learns about a namespace called CppUnit.&lt;/p&gt;
&lt;p&gt;It took me several hours to get to the bottom of this.&lt;br/&gt;
I hope it helps someone else.&lt;br/&gt;
Cathal.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cathal Curtis</dc:creator><pubDate>Wed, 19 Sep 2018 16:52:28 -0000</pubDate><guid>https://sourceforge.net315dae8d462d43b7b22ab3c6a2d43e7f5c8f6ffd</guid></item><item><title>cppunit - makefile configuration: having two compilers - cmake alternative </title><link>https://sourceforge.net/p/cppunit/discussion/128136/thread/d5f1dec5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The answer at point "b" also interesting to me (Is there a "standard" cmake?)&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andre nozze</dc:creator><pubDate>Fri, 15 Jul 2016 06:17:25 -0000</pubDate><guid>https://sourceforge.net2f16398a08bfb978098015f5721dc37d2aebf135</guid></item><item><title>Migrate to GitHub</title><link>https://sourceforge.net/p/cppunit/discussion/128136/thread/a0d5e85a/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;It seems that there isn't a lot of development on CppUnit in the recent years. I think a move to GitHub would help :)&lt;/p&gt;
&lt;p&gt;I've already migrated the SVN repo: &lt;a href="https://github.com/jhasse/cppunit" rel="nofollow"&gt;https://github.com/jhasse/cppunit&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But it would be great, if the issues can also be migrated over. I've found this script that seems to be able to do that: &lt;a href="https://github.com/cmungall/gosf2github" rel="nofollow"&gt;https://github.com/cmungall/gosf2github&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can someone with admin reights export the tickets on sourceforge? &lt;a href="https://sourceforge.net/p/cppunit/admin/export"&gt;https://sourceforge.net/p/cppunit/admin/export&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br/&gt;
Jan Niklas&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jan Niklas Hasse</dc:creator><pubDate>Tue, 05 Jul 2016 14:40:22 -0000</pubDate><guid>https://sourceforge.net83c50d4b85ca1ee6335495dce0713d02abef1871</guid></item><item><title>cppunit - makefile configuration: having two compilers - cmake alternative </title><link>https://sourceforge.net/p/cppunit/discussion/128136/thread/d5f1dec5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I would like to add cppunit tests to my source code. Running under Ubuntu. 2 questions: &lt;/p&gt;
&lt;p&gt;a) I have to make cppunit using a compiler that is located under mnt//gcc/c++-concept-branch (instead of the local one at ust/bin). Any tips of how to force make to look for it, might be by modifying the makefile ? &lt;/p&gt;
&lt;p&gt;b) Is there a "standard" cmake in order to build cppunit, insted of using the makefile ?&lt;/p&gt;
&lt;p&gt;Thanks in advance !&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Miguel Arnedo</dc:creator><pubDate>Sat, 28 May 2016 03:26:54 -0000</pubDate><guid>https://sourceforge.net3c0841156132617072e58211e672ccb998dec42d</guid></item><item><title>Test suite setup and teardown</title><link>https://sourceforge.net/p/cppunit/discussion/37108/thread/77e95255/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to write a setup() and teardown() function for the entire suite which are supposedly run only once (not the test fixture setup/teardown ones which run for each of the test case).&lt;/p&gt;
&lt;p&gt;I googled and found somewhere that CPPUNIT_TEST_SUITE_SETUP() and CPPUNIT_TEST_SUITE_TEARDOWN() can be used to register my methods. But I am not able to find the definitions of these macros anywhere. I am using 1.12.1 and are these not supported ?&lt;/p&gt;
&lt;p&gt;Are there any other solutions for my requirement ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Darshan</dc:creator><pubDate>Tue, 01 Sep 2015 14:00:12 -0000</pubDate><guid>https://sourceforge.netc49adcbd9eaa97f86b3916c9361f4d5cea8a4f06</guid></item></channel></rss>