npms-io / npms-analyzer

The analyzer behind https://npms.io
MIT License
314 stars 37 forks source link

Feature request : fetch tests from the github repository when none are in the NPM package #233

Closed xurei closed 5 years ago

xurei commented 5 years ago

Some packages don't provide the tests in the NPM package, I personnaly do that to reduce the package size. This makes the analysis give a score of 0 for the tests :-( .

It would be great that the analyzer clones the git repository (if provided) and checks the presence of tests there as well. That way, we can keep the best of both worlds : lightweight packages and tests only in the git repository.

What do you think ?

satazor commented 5 years ago

@xurei we do download the repo from github if the repository field on the package.json is filled correctly. Which package is reporting 0 tests?

satazor commented 5 years ago

Bump.

xurei commented 5 years ago

@satazor One of mine, but indeed, the repository field was not set. My bad... I'm closing this.