test_harness_t Derived Type

type, public :: test_harness_t

Encapsulate a set of test fixtures, each of which can run a set of tests.


Inherits

type~~test_harness_t~~InheritsGraph type~test_harness_t test_harness_t type~test_fixture_t test_fixture_t type~test_harness_t->type~test_fixture_t test_fixture_ type~test_t test_t type~test_fixture_t->type~test_t test_

Components

Type Visibility Attributes Name Initial
type(test_fixture_t), private, allocatable :: test_fixture_(:)

Constructor

public interface test_harness_t

  • private module function component_constructor(test_fixtures) result(test_harness)

    Component-wise user-defined structure constructor

    Arguments

    Type IntentOptional Attributes Name
    class(test_fixture_t) :: test_fixtures(:)

    Return Value type(test_harness_t)


Type-Bound Procedures

procedure, public :: report_results

  • interface

    private module subroutine report_results(self)

    If command line includes -h or --help, print usage information and stop. Otherwise, run tests and print results, including diagnostics for any failures. Also, tally and print the numbers of passing tests, total tests, skipped tests.

    Arguments

    Type IntentOptional Attributes Name
    class(test_harness_t), intent(in) :: self