Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

unit test

Lamine06F
Novice
903 Views

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!

0 Kudos
1 Solution
4 Replies
Vipin_Singh1
Moderator
861 Views

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.


0 Kudos
Scott_Boyce
New Contributor I
858 Views

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

 

Lamine06F
Novice
778 Views

Ok thank both of you.

0 Kudos
Reply