<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/fortran---testing---towards-a-generic-testable-test-runner-hydk4tgry" -->

---
title: Fortran - Testing - Towards a generic, testable test runner
description: A detailed walkthrough of refactoring a Fortran test framework to make it testable and reusable. The article demonstrates extracting test runner logic from the...
canonical: https://daily.dev/posts/fortran---testing---towards-a-generic-testable-test-runner-hydk4tgry
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Fortran - Testing - Towards a generic, testable test runner | daily.dev
og:description: A detailed walkthrough of refactoring a Fortran test framework to make it testable and reusable. The article demonstrates extracting test runner logic from the...
og:url: https://daily.dev/posts/fortran---testing---towards-a-generic-testable-test-runner-hydk4tgry
og:image: https://api.daily.dev/og/posts/hYDK4Tgry.png
og:image:alt: Fortran - Testing - Towards a generic, testable test runner
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Fortran - Testing - Towards a generic, testable test runner

**[Matthias Noback](https://daily.dev/sources/matthiasnoback)** · 6 min read · 0 upvotes · 0 comments

## Summary

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 data. Key improvements include making run_test_suites a pure function that returns results, creating a separate handle_test_results subroutine for output, and tracking passed/failed/total test counts.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://matthiasnoback.nl/2026/01/fortran-testing-reusable-test-runner/>

## Similar posts on daily.dev

- [Fortran - Testing - Unit tests and test suites](https://daily.dev/posts/fortran---testing---unit-tests-and-test-suites-lsy5kj9un) · Matthias Noback · 0 upvotes · 0 comments
- [Fortran - Testing - Improving the design of the test framework - Part 1](https://daily.dev/posts/fortran---testing---improving-the-design-of-the-test-framework---part-1-m80zedwgr) · Matthias Noback · 0 upvotes · 0 comments
- [Fortran - Testing - Improving the design of the test framework - Part 2](https://daily.dev/posts/fortran---testing---improving-the-design-of-the-test-framework---part-2-zmkthgyqn) · Matthias Noback · 0 upvotes · 0 comments
- [Fortran - Testing - Improving temporary test programs](https://daily.dev/posts/fortran---testing---improving-temporary-test-programs-6pcwovvdd) · Matthias Noback · 0 upvotes · 0 comments
- [Fortran - Testing - Showing progress and printing results](https://daily.dev/posts/fortran---testing---showing-progress-and-printing-results-hr3hrq2s8) · Matthias Noback · 0 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#fortran](https://daily.dev/tags/fortran), [#testing](https://daily.dev/tags/testing)

[View this post on daily.dev](https://daily.dev/posts/fortran---testing---towards-a-generic-testable-test-runner-hydk4tgry)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Fortran - Testing - Towards a generic, testable test runner","url":"https://daily.dev/posts/fortran---testing---towards-a-generic-testable-test-runner-hydk4tgry","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/fortran---testing---towards-a-generic-testable-test-runner-hydk4tgry"},"datePublished":"2026-01-20T09:14:53.842Z","dateModified":"2026-04-10T02:14:14.563Z","description":"A detailed walkthrough of refactoring a Fortran test framework to make it testable and reusable. The article demonstrates extracting test runner logic from the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dda6738437dc2d5d37ea1615651affeb?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dda6738437dc2d5d37ea1615651affeb?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Matthias Noback","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Matthias Noback","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/362833f5f11a4feb859e90f12dc09fa8","url":"https://daily.dev/sources/matthiasnoback"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/fortran---testing---towards-a-generic-testable-test-runner-hydk4tgry","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,fortran,testing","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Matthias Noback","item":"https://daily.dev/sources/matthiasnoback"},{"@type":"ListItem","position":3,"name":"Fortran - Testing - Towards a generic, testable test runner"}]}
```

