Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dggriffin
Copy link

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.

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 now looks for the unit test based on either absolute pathing, or relative pathing from the origin of grunt js-test.
@chriskwan
Copy link

👍 thanks for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants