-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Labels
is:enhancementRequest for adding new feature or enahncing functionality.Request for adding new feature or enahncing functionality.
Description
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
yanglintmultiple 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).
- this script would run
Postcondition:
- a report providing code-coverage like validation statistics.
- presumably, this report would be provided by a final invocation of
yanglintthat would just output the report (e.g., tree diagram)
- presumably, this report would be provided by a final invocation of
- options (sorted by complexity: easiest to hardest):
- a single number representing percentage of nodes tested (e.g., 30% or 80%)
- a per top-level statement (data, rpc, notification, yang-data, etc.) percentage number
- perhaps inlined notifications and action can be included here as well
- 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
- some combination of all of the above
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
is:enhancementRequest for adding new feature or enahncing functionality.Request for adding new feature or enahncing functionality.