Find us on…

GitHub

ForUnitTest

GitHub Version Documentation License Build

ForUnitTest: A Fortran library for unit testing.

Usage

use forunittest

type(unit_test) :: ut

call ut%check(res, expected, tol, msg)

See example/demo.f90 for a complete example.

fpm dependency

To use ForUnitTest as a dependency in your fpm project, include the following line in your fpm.toml file:

[dependencies]
forunittest = {git="https://github.com/gha3mi/forunittest.git"}

How to Run the Demo

Clone the repository:

Clone the ForUnitTest repository from GitHub using:

git clone https://github.com/gha3mi/forunittest.git
cd forunittest

Run the demo:

fpm run --example demo

Status

Compiler macos ubuntu windows
flang-new - fpm ✅ cmake ✅ fpm ✅ cmake ✅
gfortran fpm ✅ cmake ✅ fpm ✅ cmake ✅ fpm ✅ cmake ✅
ifx - fpm ✅ cmake ✅ fpm ✅ cmake ✅
lfortran fpm ❌ cmake ❌ fpm ❌ cmake ❌ fpm ❌ cmake ❌
nvfortran - fpm ✅ cmake ✅ -

API documentation

The most up-to-date API documentation for the main branch is available here. To generate the API documentation for ForUnitTest using ford run the following command:

ford README.md

Contributing

Contributions to ForUnitTest are welcome! If you find any issues or would like to suggest improvements, please open an issue.

Developer Info

Seyed Ali Ghasemi