lando / leia

A testing utility that tests code blocks in documentation.
GNU General Public License v3.0
18 stars 4 forks source link

Leia will also scans through dep dirs like `vendor` and `node_modules` #1

Closed pirog closed 3 years ago

pirog commented 5 years ago

This should also very well be a bug or documentation update

Is your feature request related to a problem? Please describe. Leia will scan large directories specified in loose globz like node_modules and sometimes there are files that get flagged as false positives. This results in the generation of some tests that definitely shouldnt be tests.

Describe the solution you'd like Not exactly sure but here are things to consider

  1. It might already be possible to specify glob excludes with additional -p patterns based directly to leia. If this is true then we probably just want to update docs and spin up a tests
  2. Alternatively we might want to consider some sort of --exclude option
  3. Alternatively we could just automatically exclude common dependency directories like node_modules or vendor
pirog commented 3 years ago

0.4.0 will support --ignore