Skip to content

Consider renaming test case configuration file suffix #572

@thorehusfeldt

Description

@thorehusfeldt

In 2025-09 we put test case configuration files in a file called <testcase>.yaml., where <testcase is the name of the testcase, such as 001.

I suggest instead put this information into a file that has a different suffix that .yaml. For instance,

  • 001_test_case.yaml
  • 001.test_case.yaml
  • 001.config.yaml
  • 001.test_case_config.yaml
  • 001.metadata.yaml

or whatever we can agree on.

The reason for this is to allow tooling to recognise such files using standard glob patterns. For instance,

  • A LSP-aware editor (VS Code, NeoVim, etc.) will negotiate the correct JSON schema via schemastore, which matches on glob patterns. There is no way to tell the editor to please use this grammar for out test case configuration files because we cannot positively identify them (in particular, distinguish them from test_group.yaml)
  • BAPCtools may want to validate test case configuration files against a schema to ensure test data integrity; the dispatcher works on file names, mappting (say) problems.yaml files to the schema #Problem, test_group.yaml files to the schema #test_group_configuration. But it cannot just map *.yaml (or even data/**/*.yaml) to the schema #test_case_configuration.

There could be more, the two cases above just happened to me today alone.

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