Closed aentinger closed 10 months ago
Thanks for highlighting this @aentinger 🌷
The rational for having the tests in the extras/tests
subfolder was mentioned as part of https://github.com/arduino/arduino-lint/issues/588 . Specifically:
Including test sketches, which have no/little pedagogical value, will increase the complexity of the user experience. Advanced users can always see the test sketches in the repository or local installation of the library.
These tests are more like functional tests, so, yes maybe they should be in a different place. I agree though, that I don't want the end users to see them as they are not meant to be executed by them. We have separate sketches to demonstrate the features of this library. What if we create a new folder functional-tests
? Would that make it clearer?
@sebromero If we create a new folder called functional-tests
, it would need to be inside the extras
folder: extras/functional-tests
.
Rule LD003 of the linter does not allow for any .ino
sketches to be outside the examples
or extras
(sub)folders.
A sketch was found outside the library's
examples
and/orextras
subfolders. Example sketches must be placed in the standardized location.
@aliphys Sure that's what I meant.
Normally we store only host-executed unit tests within the
extra/tests
sub-folder.Moving those sketches over in the
examples
folders has the added benefit of finding them quickly via the IDE.