Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdebuyl/fortran_tester
Fortran module to test Fortran programs
https://github.com/pdebuyl/fortran_tester
fortran testing
Last synced: 28 days ago
JSON representation
Fortran module to test Fortran programs
- Host: GitHub
- URL: https://github.com/pdebuyl/fortran_tester
- Owner: pdebuyl
- License: other
- Created: 2015-06-28T20:21:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T08:48:27.000Z (over 2 years ago)
- Last Synced: 2024-07-30T18:27:46.805Z (3 months ago)
- Topics: fortran, testing
- Language: Fortran
- Homepage: http://pdebuyl.github.io/fortran_tester/
- Size: 270 KB
- Stars: 25
- Watchers: 6
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
program test
use tester
implicit nonetype(tester_t) :: my_tester
call my_tester% init()
call my_tester% assert_equal(1+1, 2)
call my_tester% print()
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:** BSDContributors: 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](https://cmake.org/),
[FoBiS](https://github.com/szaghi/FoBiS), or [FPM](https://github.com/fortran-lang/fpm).## Coverage information
If you read the autogenerated documentation, the [coverage
data](ft_coverage/index.html) should be available.