Wiki
Clone wikipflotran / Developers / CodeDevelopment / UnitTesting
Unit Testing
Use within PFLOTRAN
Initially we should focus on developing unit tests for "mathematical" functions, i.e. functions or subroutines that take simple input parameters and return a value or vector of values. The best functions are those that don't require setting up complex data structures. Examples are interpolation functions, equations of state, constitutive relationships.
Available Frameworks
pFUnit
- NASA page
- available at sourceforge
- advantages
- more "professional"
- supports mpi in tests
- actively development community?
- disadvantages
- more complex
- I don't under stand the license (can we distribute it with pflotran, or does it have to became a TPL?)
FRUIT (Fortran Unit Test Framework)
- available at sourceforge
- advantages
- BSD license (incorporate directly into pflotran repo)
- simple (we can ignore ruby portion/replace with python)
- disadvantages
- less professional/community support?
- No mpi
Updated