Skip to content

Unit testing framework #176

Open
Open
@awvwgk

Description

@awvwgk

I seems like we will stay with my (temporary) testing framework for now. I'm actually surprised that this idea worked out.

Nevertheless, we should discuss if there might be better alternatives or in case we want to stay with the current model, how it should behave as we implement more test suites. If we want to allow preprocessor or external (non-Fortran) dependencies we have a much wider range of testing frameworks available.

Regarding the current behaviour of the testing framework:

  • one executable for all test suites to reduce [[test]] entries in fpm.toml (related to Automatically discover executables & tests #164)
  • failing tests within a suite will not cause the testing to halt
    • better overview in a CI run about errors
    • potential for parallelisation over a test suite
  • a failing test suite will halt the testing framework
  • array constructor to register unit tests (and also test suites)
    • name and procedure pointer required (could be redundant)
    • could become fragile for very large test suites (compiler limits for array constructors)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions