[Mockpp-commits] mockpp/mockpp/docs/en faq.docbook,1.4,1.5 index.docbook,1.25,1.26
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-04-23 18:12:10
|
Update of /cvsroot/mockpp/mockpp/mockpp/docs/en In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15618/mockpp/docs/en Modified Files: faq.docbook index.docbook Log Message: new faq item Index: faq.docbook =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/docs/en/faq.docbook,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- faq.docbook 9 Apr 2005 18:13:57 -0000 1.4 +++ faq.docbook 23 Apr 2005 18:12:01 -0000 1.5 @@ -45,6 +45,37 @@ <!-- --> <qandaentry> + <question> + <para>How should one organise production code and test code?</para> + </question> + + <answer> + <para>There is no general solution how to organise the sources to both run the tests + and create a releasable binary without debugging and test code.</para> + + <para>A flexible and clean approach is the one used within mockpp: + <itemizedlist> + <listitem>Place all the classes and funcions of your production code into + appropriate libraries. All the source code for the according library + is in a separate subdirectory.</listitem> + + <listitem>Create a minimalistic application source file with your + <methodname>main()</methodname> in a top-level directory. + This application uses the former libraries.</listitem> + + <listitem>Create a subdirectory <filename>tests</filename> within each sub-project + which contains all the test files needed. Depending on your test framework + the test files form a libary or an executable. Upon execution the above libray + with the production code is linked dynamically.</listitem> + </itemizedlist> + </para> + </answer> + + </qandaentry> + + <!-- --> + + <qandaentry> <question> <para>Where can I ask a question regarding &mockpp;?</para> Index: index.docbook =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/docs/en/index.docbook,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- index.docbook 9 Apr 2005 18:13:57 -0000 1.25 +++ index.docbook 23 Apr 2005 18:12:02 -0000 1.26 @@ -10,8 +10,8 @@ <!ENTITY cppunit '<application>cppunit</application>' > <!ENTITY copyyears '2002-2005' > <!ENTITY mockpp_email 'mockpp at ewald-arnold dot de' > - <!ENTITY release_date '<date>2005-04-10</date>' > - <!ENTITY release_info '<releaseinfo>1.07.01</releaseinfo>' > + <!ENTITY release_date '<date>2005-04-23</date>' > + <!ENTITY release_info '<releaseinfo>1.07.02</releaseinfo>' > <!ENTITY chap_bookinfo SYSTEM 'bookinfo.docbook' > <!ENTITY chap_intro SYSTEM 'intro.docbook' > |