- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In Python, there is tools like Pytest that helps to test function. My question is if there is something like Pytest in Fortran and how to use in Fortran. I have a program that contains a lot of functions and they are giving false result or I should say, after some results, it fails.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here are the links of some online resource about Fortran unit test:
https://fortranwiki.org/fortran/show/Unit+testing+frameworks
https://fortran-lang.discourse.group/t/simple-unit-testing-in-fortran-with-cmake-ctest/6655
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Diallo, we are routing your query to the respective team for the further help. They will get back to you as soon as possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I developed a unit test derived data type. It is part of my Batteries Included Fortran Library. Its my attempt to bring a lot of Python features into Fortran.
Boyce, S.E., 2023, Batteries Included Fortran Library (BiF-lib), version 1.2: U.S. Geological Survey Software Release, https://doi.org/10.5066/P9K2IQ6Y
https://code.usgs.gov/fortran/bif
and mirrored at:
https://github.com/ScottBoyce/bif
The specific file is located at:
https://code.usgs.gov/fortran/bif/-/blob/main/src/unit_test/unit_testing_instruction.f90
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here are the links of some online resource about Fortran unit test:
https://fortranwiki.org/fortran/show/Unit+testing+frameworks
https://fortran-lang.discourse.group/t/simple-unit-testing-in-fortran-with-cmake-ctest/6655
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok thank both of you.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page