vistaprint / grunt-js-test

Grunt plugin to run client-side, mocha unit tests and generate code coverage reports
10 stars 11 forks source link

Support relative & absolute path for "--file=" #25

Open dggriffin opened 8 years ago

dggriffin commented 8 years ago

Previously, when using the --file= flag to run a specific test, the path for each test at test.file was a static-path starting at Areas/**/*unittests.js..Meaning to achieve a match, you always had to provide a path starting at Areas, like Areas\Studio\Tests\Commands\ChangeDesign.unittests.js.

This change causes the --flag= to look for unit test matches based on absolute pathing and relative pathing from the origin of grunt js-test.

chriskwan commented 8 years ago

:+1: thanks for fixing this!