gleb812 / pch2csd

The Clavia Nord Modular G2 Patch Convertor Project
MIT License
139 stars 11 forks source link

Make patch parsing unit tests agnostic to template implementation #20

Closed ghost closed 2 years ago

ghost commented 6 years ago

Our test suite checks parsing correctness by evaluating templates and their mappings and comparing results with those, that are expected by tests and hardcoded. That means, if someone changes, e.g. a mapping table for some parameter in a template, tests that rely on this template will fail. We need to overcome this, e.g. by mocking mapping table or something similar.