A detailed walkthrough of refactoring a Fortran test framework to make it testable and reusable. The article demonstrates extracting test runner logic from the main program block into callable procedures, separating result collection from output generation, and introducing a test_results_t type to encapsulate test execution

6m read time From matthiasnoback.nl
Post cover image
Table of contents
Breaking out of the main programMaking run_test_suites testableCollecting more test results

Sort: