Skip to content

Allow custom suffix/identifier for @TEST-START-NEXT #118

@awelzel

Description

@awelzel

This is motivated by: https://github.com/zeek/zeekctl/pull/84/files#r2218909229

Using @TEST-START-NEXT is a valid suggestion, but then it produces baselines and testing output with a non-descriptive -2 suffix. It'd be nice if @TEST-START-NEXT could be given an optional identifier such that instead of -2 it'd end with -<identifier>. Supposedly all @TEST-START-NEXT lines in one test file should've identifiers and otherwise error to prevent mixing the different styles. Duplicated identifiers would also be an error.

This would help test documentation and also aid working with baselines a bit: Trying to map baselines produced by @TEST-START-NEXT to the right snippets or vice-versa is pretty painful now that I remember back to the few occasions I had to do so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions