lydiachoi / test-percentage-visualizer

Visualizer to show percentage of test code through time
2 stars 0 forks source link

Skip commit if no test files are present #3

Closed cboltt closed 4 years ago

cboltt commented 4 years ago

At the beginning of a repo's history, there may not be any tests present. We should skip these commits without trying to install packages for a faster runtime.

jregchiu commented 4 years ago

Will try to work this into iterating over all commits when I have a chance. I'm guessing it would be something like checking for the presence of any files in a test/ directory in the repo?

cboltt commented 4 years ago

Exactly - detecting the presence of *.test.js/whatever other types of test files we support