Files | Admin

Notes:

Release Name: 0.10.0

Notes:
FUnit is a unit testing framework for Fortran.

Unit tests are written as Fortran fragments that use a small
set of testing-specific keywords and functions.  FUnit transforms
these fragments into valid Fortran code, compiles, links, and
runs them against the code under test.

FUnit is {opinionated software}[http://www.oreillynet.com/pub/a/network/2005/08/30/ruby-rails-david-heinemeier-hansson.html], which values convention over
configuration. Specifically, FUnit,
* requires a Fortran 95 compiler,
* only supports testing routines contained in modules,
* requires tests to be stored along side the code under test, and
* requires test files to be named appropriately.


Changes: === 0.10.0 / 2008-03-30 (all courtesy of Diego Virasoro) * 4 major enchancements * User can now use 'funit --clean' to remove the generated files * Source directory and test directory can be different: specify source dir with -s (or --source) flag * Only the minimum number of files that need recompilation are compiled via makefile * The .fun file name is not constrained anymore, but now each test suite must be surrounded by 'test_suite name' and 'end test_suite', where name is the name of the module to be tested * Multiple test suites can exist inside the same file * 5 minor enchancements * Change blocks nomenclature: beginTest -> test and endTest -> end test (and similarly for setup and teardown) * Change assertions nomenclature (eg. IsEqual -> assert_equal) * Added one new assertion: assert_array_equal * Added a summary of all the test suites results, printed at the end * Minor code clean-up