Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

detect-repo-test-files

NPM version Downloads Build Status Coverage Status Dependency status Dev Dependency status Greenkeeper badge

Scans a repository directory, searching for a test files.

All files present in test folders will be returned, including non-javascript files. You may filter those files afterwards with Array#filter.

Installation

$ npm install detect-repo-test-files

Usage

detectRepoTestFiles(dir) -> Promise

const detectRepoTestFiles = require('detect-repo-test-files');

detectRepoTestFiles('./some-repository-directory')
.then((files) => {
    console.log(`detected ${files.length} test file(s)`);
    console.log(files);
});

Tests

$ npm test
$ npm test-cov to get coverage report

License

Released under the MIT License.

About

Scans a repository directory, searching for a test files

Resources

License

You can’t perform that action at this time.