Skip to content

[Plugins] Streaming of Verification Results #634

@ArquintL

Description

@ArquintL

The documentation given in PluginTemplate refers to "after the verification" in mapVerificationResult and beforeFinish.
In the context of verification result streaming, i.e. using entity result messages, verification results for individual methods have to be transformed by plugins.
In this context, these are the resulting requirements:

  1. mapVerificationResult is applied once per entity result message (which are supposed to contain disjoint verification errors)
  2. mapVerificationResult might be applied once more on the overall result message (this is the case for ViperServer but not all backend user's might actually do this)

Additionally, it's unclear when to call beforeFinish: The documentation could specify that it must be called exactly once.

The current plugins seem to be compliant with these requirements except for the refute plugin (@JonasAlaif): The refute plugin uses mapVerificationResult not only to remove (the expected) verification errors but also to add verification errors for those that did not occur. The latter functionality could either be moved to beforeFinish (which would require updating the test framework because beforeFinish is according to the documentation not called in tests) or mapVerificationResult would need to take an additional argument specifying the entity, i.e. method, when invoked for entity verification results

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions