Skip to content

Conversation

@deslaughter
Copy link
Collaborator

This PR is ready to be merged.

Feature or improvement description

This PR replaces the pFUnit unit testing framework with test-drive. test-drive is a much simpler framework which doesn't require Python and CMake to generate the tests. This allows the unit testing code to be more easily managed and used for debugging as test-drive is just standard Fortran code.

Related issue, if one exists

This PR is an alternative to upgrading pFUnit as in #2273.

Impacted areas of the software

Unit tests in AeroDyn, BeamDyn, InflowWind, NWTC Library, and VersionInfo have been migrated to the new framework. The unit_tests directory has been significantly reworked and the documentation on unit testing has been updated.

Additional supporting information

pFUnit was included as a submodule and had not been updated in a long time. test-drive is two Fortran files which the author allows to be distributed as part of other source code, it is licensed under Apache v2 and is compatible with the OpenFAST license. The test-drive source, along with it's README and license files have been added in unit_tests/test-drive. The pFUnit submodule was removed and the existing tests reorganized according to the new framework.

Copy link
Collaborator

@andrew-platt andrew-platt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not go through all the revisions to the test logic in detail, but the overall change looks good. Thanks for making this happen!

@deslaughter deslaughter merged commit f5c4bb4 into OpenFAST:dev Jun 24, 2024
@deslaughter deslaughter deleted the f/test-drive_unit_tests branch June 24, 2024 16:07
@andrew-platt andrew-platt mentioned this pull request Dec 24, 2024
38 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants