1. What is FRUIT?
FRUIT is FORTRAN Unit Test Framework, written in FORTRAN 95.
FRUIT has assertion, fixture, setup, teardown, report, spec, driver generation and uses Rake (Ruby) used as build tool.
FRUIT core is written in FORTRAN , so one can use it without need of installing any additional software.
2. Requirements
2.1. FRUIT (FORTRAN only)
- Fortran compiler (eg. gfortran)
- fruit.f90 source file: https://github.com/mortele/FRUIT/blob/master/src/fruit.f90
2.2. FRUIT (FORTRAN + Ruby)
- Fortran compiler (eg. gfortran)
- fruit.f90 source file: https://github.com/mortele/FRUIT/blob/master/src/fruit.f90
- fruit_processor_gem files: https://github.com/mortele/FRUIT/tree/master/fruit_processor_gem
- Ruby
- Rake
3. Avaivable tools
subroutines: assert_equals assert_not_equals assert_true assert_false setup teardown !examples with different types: !integers and reals assert_equals(a,b) assert_equals(a,b,"Message when assert fails") assert_not_equals(a,b) assert_not_equals(a,b,"Message when assert fails") !NOTE: "Message when assert fails" is optional !reals with tolerance assert_equals(a,b,tolerance) !booleans and expressions assert_true(expression) assert_false(expression) !strings assert_equals("abc","abc") assert_not_equals("abc","abc")