fortplot_test_utils Module

Test utilities for Windows CI performance optimization

This module provides utilities to help tests run efficiently on Windows CI while maintaining test coverage quality (Issue #188).



Functions

public function skip_on_slow_ci(test_name) result(should_skip)

Determine if test should be skipped on slow CI

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: test_name

Return Value logical

public function use_fast_test_mode() result(use_fast)

Check if fast test mode should be used

Arguments

None

Return Value logical

public function int_to_str(i) result(str)

Convert integer to string

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: i

Return Value character(len=32)

public function get_platform_tolerance(base_tolerance) result(tolerance)

Get platform-appropriate tolerance for numerical comparisons Addresses Issue #297: Windows CI precision differences

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: base_tolerance

Return Value real(kind=real64)


Subroutines

public subroutine start_performance_test(test_name)

Start timing a performance test

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: test_name

public subroutine end_performance_test(test_name)

End timing a performance test

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in), optional :: test_name

public subroutine assert_performance_target(test_name, target_time, actual_time)

Assert that performance meets target

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: test_name
real(kind=real64), intent(in) :: target_time
real(kind=real64), intent(in) :: actual_time