Cppunit effort: Difference between revisions

m
→‎Structure: https://sourceforge.net/p/flightgear/mailman/message/35801322/
m (→‎Structure: https://sourceforge.net/p/flightgear/mailman/message/35801322/)
Line 125: Line 125:
   |script_version = 0.36  
   |script_version = 0.36  
   }}</ref>
   }}</ref>
== Getting involved ==
We would recommend copying existing tests in SimGear or more recently, FlightGear - we have a few.
You don’t need to learn much [[CMake]], just copy the test helper macro James wrote.
The framework we have is very simple, just some macros in SimGear. If you want to integrate CppUnit, we have a proposal to do that from another contribution; I don’t mind but it we need to add it to the Windows dependency list. So I’d suggest starting with CrappySimgearUnit and if you decide you would like CppUnit, shout and I can add it.
Test code can either go next to the sources it’s testing, or in the case of flightgear, in a subdir of tests/ (again, see the code for examples).
For Yasim and FDM/Yasim/tests dir might make sense <ref>https://sourceforge.net/p/flightgear/mailman/message/35801322/</ref>


== New SubSystem Design ==
== New SubSystem Design ==