Open fxedel opened 5 years ago
I am looking into this but I am having some trouble:
First of all, isn't this already covered in tests/fixture-valid.js#L462?
Second of all, I am having trouble actually reproducing the Issue because it seems like there is no easy way to invoke checkFixture
on a single file (in OFL JSON format) locally (without writing a quick wrapper) or am I missing something?
Hello @Swiftb0y, thanks for having a look at this issue! Currently, there is no easy way to run checkFixture on a single fixture. A command line parameter would definitely be desirable for this (feel free to fix this if you want to).
Back to the topic of this issue: I think the problem was that an out-of-range DMX value caused an error in the scale-dmx-values module, just before the fixture-valid script could check the range and return a good error message. You'll possible need to change the position of the range check before the scale-dmx-values module is used.
You can run fixtures-valid.js
to check all fixtures. For that script, a parameter -f
/ --fixture
that restricts the set of fixtures would indeed be helpful.
Steps to reproduce
Create a capability that exceeds the maximum DMX value, like so:
The fixture valid test fails, but primarily because of an error thrown in
scale-dmx-values
module.Expected behavior
The error should be catched directly by the fixture-valid test, so that the error string includes information about which channel and which capability is affected.