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

Conflict with grunt-cli 1.3.x #119

Closed
henryruhs opened this issue Nov 10, 2018 · 1 comment
Closed

Conflict with grunt-cli 1.3.x #119

henryruhs opened this issue Nov 10, 2018 · 1 comment

Comments

@henryruhs
Copy link

henryruhs commented Nov 10, 2018

I used to run PHPUnit via Grunt using grunt phpunit what basicly does a grunt shell:phpunit.

Since grunt-cli 1.3.0 the gruntfile option is being passed to the command. As PHPUnit is detecting an invalid option - it cancles the operation.

Fragment of the grunt-shell task:

{
		phpunit:
		{
			command: 'vendor/bin/phpunit ' + grunt.option.flags()
		}
}

Error reported by PHPUnit:

Running "shell:phpunit" (shell) task
PHPUnit 7.4.3 by Sebastian Bergmann and contributors.

unrecognized option --gruntfile
Warning: Command failed: vendor/bin/phpunit --gruntfile=/home/redaxmedia/PhpstormProjects/redaxscript/gruntfile.js
 Use --force to continue.

Could you please remove the --gruntfile option and release a new version?

Thank you

@henryruhs
Copy link
Author

henryruhs commented Nov 10, 2018

Sorry, it was related to grunt.option.flags() ... open issue on gruntjs/grunt-cli#126

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

No branches or pull requests

1 participant