Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gha3mi/forunittest
ForUnitTest: A Fortran library for unit testing.
https://github.com/gha3mi/forunittest
fortran fortran-package-manager test unittest
Last synced: about 1 month ago
JSON representation
ForUnitTest: A Fortran library for unit testing.
- Host: GitHub
- URL: https://github.com/gha3mi/forunittest
- Owner: gha3mi
- License: bsd-3-clause
- Created: 2023-12-28T15:39:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-03T20:52:54.000Z (about 1 year ago)
- Last Synced: 2024-01-04T19:39:45.120Z (about 1 year ago)
- Topics: fortran, fortran-package-manager, test, unittest
- Language: Fortran
- Homepage: https://gha3mi.github.io/forunittest/
- Size: 552 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![GitHub](https://img.shields.io/badge/GitHub-ForUnitTest-blue.svg?style=social&logo=github)](https://github.com/gha3mi/forunittest)
[![Version](https://img.shields.io/github/release/gha3mi/forunittest.svg)](https://github.com/gha3mi/forunittest/releases/latest)
[![Documentation](https://img.shields.io/badge/ford-Documentation%20-blueviolet.svg)](https://gha3mi.github.io/forunittest/)
[![License](https://img.shields.io/github/license/gha3mi/forunittest?color=green)](https://github.com/gha3mi/forunittest/blob/main/LICENSE)
[![Build](https://github.com/gha3mi/forunittest/actions/workflows/CI_test.yml/badge.svg)](https://github.com/gha3mi/forunittest/actions/workflows/CI_test.yml)**ForUnitTest**: A Fortran library for unit testing.
## Usage
```fortran
use forunittesttype(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:
```toml
[dependencies]
forunittest = {git="https://github.com/gha3mi/forunittest.git"}
```## How to Run the Demo
**Clone the repository:**
Clone the `ForUnitTest` repository from GitHub using:
```shell
git clone https://github.com/gha3mi/forunittest.git
cd forunittest
```**Run the demo:**
```shell
fpm run --example demo
```## API documentation
The most up-to-date API documentation for the main branch is available
[here](https://gha3mi.github.io/forunittest/).
To generate the API documentation for `ForUnitTest` using
[ford](https://github.com/Fortran-FOSS-Programmers/ford) run the following
command:```shell
ford ford.yml
```## Contributing
Contributions to `ForUnitTest` are welcome!
If you find any issues or would like to suggest improvements, please open an issue.