summaryrefslogtreecommitdiff
path: root/doc/FAQ
blob: f647c5494ad29d0bab76f62737d39d1190091b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Frequently Asked Questions:
---------------------------

1) Questions relating to CppUnit
   ----------------------------

1.1) Isn't there an easier way to write unit tests than using TestCaller ?

   Yes, there is. Macros have been created to take care of the repetitive 
work. Look up include/extensions/HelperMacros.h in CppUnit documentation. 
Most of CppUnit test suite is also written that way since they remain 
compatible as CppUnit evolve.


2) Questions related to Microsoft Visual VC++
   -----------------------------------------

2.1) Why does the compiler report an error when linking with CppUnit library?

   You most likely are not using the same C-RunTime library as CppUnit.
   In Release configuration, CppUnit use "Mulithreaded DLL".
   In Debug configurations, CppUnit use "Debug Multihreaded DLL".
   Check that Projects/Settings.../C++/Code Generation is indeed using
the correct library.
   
2.2) Why does CppUnit generate warning 4786:... when compiling ?

   I really don't have a clue. All CppUnit's headers starts by either
including Portability.h or another CppUnit's header. Portability.h includes
config-msvc6.h which disable that specific warning. The warning is generated
by TestFactoryRegistry::m_factories. A solution to this problem is welcome.