Skip to content

code-coverage validation statistics (feature request) #693

@kwatsen

Description

@kwatsen

Precondition:

  • a YANG module (example.yang)
  • a bunch of instance example documents (a.xml, b.json, etc.)
  • a script that validates each instance example document against the YANG module
    • this script would run yanglint multiple times (distinct invocations)
    • presumably, there would be some special directory (e.g. ./.ycov/) that would be used to accumulate the statistics across runs (the user would be responsible for removing this directory before each fresh run).

Postcondition:

  • a report providing code-coverage like validation statistics.
    • presumably, this report would be provided by a final invocation of yanglint that would just output the report (e.g., tree diagram)
  • options (sorted by complexity: easiest to hardest):
    1. a single number representing percentage of nodes tested (e.g., 30% or 80%)
    2. a per top-level statement (data, rpc, notification, yang-data, etc.) percentage number
      • perhaps inlined notifications and action can be included here as well
    3. a tree-diagram like output that tags each node with the number of times it was tested
      • top-level nodes would have the highest numbers.
      • the value here would be in seeing which parts are not tested much, or at all
    4. some combination of all of the above

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:enhancementRequest for adding new feature or enahncing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions