项目作者: pdebuyl

项目描述 :
Fortran module to test Fortran programs
高级语言: Fortran
项目地址: git://github.com/pdebuyl/fortran_tester.git
创建时间: 2015-06-28T20:21:55Z
项目社区:https://github.com/pdebuyl/fortran_tester

开源协议:Other

下载


Fortran tester {#mainpage}

tester is a Fortran module to test Fortran programs. It provides routines to
check equality or closeness between variables and counting the errors.

A minimal example:

  1. program test
  2. use tester
  3. implicit none
  4. type(tester_t) :: my_tester
  5. call my_tester% init()
  6. call my_tester% assert_equal(1+1, 2)
  7. call my_tester% print()
  8. end program test

If none of the tests fail, the print method displays the message
fortran_tester: all tests succeeded.
Else, the program will exit with a nonzero error code, making it suitable for
use as an automated test.

Author: Pierre de Buyl
License: BSD

Contributors: Peter Colberg, Stefano Szaghi, Pietro Bonfa, Elias Lettl, Giacomo Rossi,
Peter Hill, Jacob Williams

Installation

fortran_tester consists of a single Fortran file. You can just drop src/tester.f90 in
your Fortran project or build using CMake,
FoBiS, or FPM.

Coverage information

If you read the autogenerated documentation, the coverage
data
should be available.