Veggies is a unit testing framework for testing Fortran codes. It has a sister project called Garden which acts as the same testing framework but for codes which use coarray. "The hope is that at some point in the future all compilers will support parallel features implicitly, and any need for two separate packages will disappear."
The veggies tests will run with the rest of the FPM tests in the repo.
Compilers tested: GNU Fortran (Homebrew GCC 14.2.0_1)
| Feature | Implemented natively | Implemented manually |
|---|---|---|
| Can run individual tests | Yes ( fpm test "fpm test name" [-- -f "regex for test description"] ) | N/A |
| Mocking/Stubbing | No | No |
| Data driven tests | Yes (via defining custom types which extend input_t type) |
N/A |
| Coverage report | No | No |
| Skip tests | No | Sort of (return a generic pass with a description indicating test was skipped) |
with fpm it is a simple as fpm build and then fpm test