TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
101 stars 32 forks source link

Testing checker #205

Closed brice-morin closed 6 years ago

brice-morin commented 6 years ago

It would be good to also test some (tricky) cases that should not produce error, so as to test that the checker is not too strict... I guess this require some changes in the testing tool + an annotation to check if we are explicitly not expecting error.

jakhog commented 6 years ago

This is already implemented 😄

You can put the annotation @checker_should_fail "false" to say that the test case expects the checker to run without any errors.

EDIT: The annotation can be put on a configuration or a thing. And since we are using the model, it assumes that the model can be parsed and linked.