Overview
UCL-ARC will be hosting a Testing in Fortran workshop. This workshop aims to transform the way you develop and maintain Fortran software. Whether you're working on legacy models, research code, or high-performance simulations, this workshop will equip you with the knowledge and tools to automate testing, improve code quality, and therefore reduce bugs.
This workshop will be split across two days (16th and 18th Feb).
What's covered
Foundations of Unit Testing
We start with the basics: what a unit test is, why it matters for scientific software, and the key qualities of a good test.
Refactoring Fortran for Testability
We’ll cover techniques to refactor hard-to-test code, so that tests can be written cleanly and effectively.
Writing Your First Fortran Unit Tests
Once your code is testable, we’ll walk you through writing your first unit test. You’ll practise setting up simple test cases, calling Fortran procedures under test, and using assertions to verify behaviour.
Understanding Test Syntax with pFUnit
We introduce pFUnit, our chosen unit-testing framework for Fortran. You’ll learn key syntax for writing pFUnit tests.
Integrating Tests with Build Systems
We’ll show you how to integrate tests into build systems like CMake and Make.
Testing Parallel Code
Parallel Fortran code introduces complexity. We’ll cover how to write and run unit tests for parallel routines using pFUnit’s support for MPI and coordinate tests across multiple processes.
Outcomes
By the end of this workshop, you'll be able to
- Explain the value of unit testing for robust code
- Refactor legacy Fortran into testable components
- Write and execute unit tests using a modern Fortran testing framework
- Integrate testing into your standard build and development workflow
- Confidently test both serial and parallel routines
Torrington Place 1-19, B07 Teal Room
University College London
until
Begin:
End:
Add to Calendar