Unit testing can be used for testing small pieces of functionality. We use GoogleTest as our test framework.
GoogleTest is already included in the OGS source code. Running tests is as simple as building the tests
-target.
All tests are located inside the Tests-directory in library-specific subfolders. To write a new test you simply create a new .cpp-file and use the GoogleTest macros.
This article was written by Lars Bilke. If you are missing something or you find an error please let us know.
Generated with Hugo 0.122.0
in CI job 504124
|
Last revision: November 12, 2024
Commit: [BL/MPI] Use MPI_COMM_WORLD in reduceMin 4aae83e
| Edit this page on