p3lim / vyaml

VyOS YAML config toolkit
GNU General Public License v3.0
10 stars 2 forks source link

Add tests #6

Open onedr0p opened 11 months ago

onedr0p commented 11 months ago

Not sure the best way to handle this but it maybe we could get contributions from the community and build a catalog of set commands to vyaml config file(s) and make sure they pass? Trying to cover all options in Vyos might not be easily achievable but if we cover enough uses cases it will give some confidence updates won't break.

p3lim commented 11 months ago

Functional testing could be something as simple as having a yaml file that covers a large section of the available options in yaml form, and a pre-tested commands file, then run the cli and see if it matches.

Unit testing is probably out of the question.