Hi! Sorry if this is in the doc somewhere - if it is, I couldn't find it. Running examples/simple is supposed to run four tests, all of which fail (no errors)? Running examples/money is supposed to run four tests, all of which pass? Just making sure I have my install running correctly. Thanks!
DG
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Follow-up: assuming at the very least the money example is working as it should, I've begun using it (actually, using it is incidental - what I'm really doing is leveraging the Visual Studio Project provided with it) to develop my own tests. Out of curiosity, in MoneyTest.cpp, I commented out the #include <cppunit/config/SourcePrefix.h> and the thing still builds and runs! What's in there that someone thought was necessary but apparently isn't?
DG
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
See cppunit-1.12.0/doc/html/_source_prefix_8h.html
SourcePrefix.h will only be included by some implementation files like CompilerOutputter.cpp, ...
config-auto.h will be created by ./configure.
Only include what your code needs.
You may run your preprocessor alone to verify that nothing in there is used in your code.
> cpp -dI MoneyTest.cpp | gvim -
Hi! Sorry if this is in the doc somewhere - if it is, I couldn't find it. Running examples/simple is supposed to run four tests, all of which fail (no errors)? Running examples/money is supposed to run four tests, all of which pass? Just making sure I have my install running correctly. Thanks!
DG
Follow-up: assuming at the very least the money example is working as it should, I've begun using it (actually, using it is incidental - what I'm really doing is leveraging the Visual Studio Project provided with it) to develop my own tests. Out of curiosity, in MoneyTest.cpp, I commented out the #include <cppunit/config/SourcePrefix.h> and the thing still builds and runs! What's in there that someone thought was necessary but apparently isn't?
DG
See cppunit-1.12.0/doc/html/_source_prefix_8h.html
SourcePrefix.h will only be included by some implementation files like CompilerOutputter.cpp, ...
config-auto.h will be created by ./configure.
Only include what your code needs.
You may run your preprocessor alone to verify that nothing in there is used in your code.
> cpp -dI MoneyTest.cpp | gvim -
simple:
Failures !!!
Run: 4 Failure total: 4 Failures: 4 Errors: 0
money:
OK (4)