Unable to write tests for schema-based check functions #95
Labels
conclusion: resolved
Issue was resolved
criticality: high
Of high impact
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
The schemas themselves and the schema handling functions have pretty good coverage, but I'm still missing the ability to add tests for the check functions based on them, For example:
arduino-lint/check/checkfunctions/library.go
Lines 119 to 134 in f22ed88
I haven't figured out how to do this.
This is related to the previous discussion here:
#14 (review)
The trouble is that the schema path is configured relative to the executable path (#21):
arduino-lint/configuration/configuration.go
Line 210 in f22ed88
which doesn't work when running tests.
The tests I have written for functions using the schemas were possible because they had a schema path parameter. But the check functions don't have such a parameter and I don't like the idea of adding such a parameter to every check function.
The text was updated successfully, but these errors were encountered: