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

Make it possible to skip tests. #50

Closed
veewee opened this issue Oct 26, 2015 · 2 comments
Closed

Make it possible to skip tests. #50

veewee opened this issue Oct 26, 2015 · 2 comments

Comments

@veewee
Copy link
Contributor

veewee commented Oct 26, 2015

For example:

grumphp run --skip=phpunit
grumphp run --skip=phpunit,behat
@veewee
Copy link
Contributor Author

veewee commented Jan 26, 2016

It seems like a better idea to specify task suites in the grumphp configuration.
This way, it is possible a different CI test suite then the pre-commit test-suite.

I was thinking about the following logic:

  • git:pre-commit uses the git-pre-commit suite if it exists. If it does not exist it used all specified tasks.
  • git:commit-msg uses the git-commit-essage suite if it exists. If it does not exist it used all specified tasks.
  • run uses all specified tasks. When a --testsuite=[suite] is specified, the suite is used or an exception is thrown when it does not exist.

When this is implemented, it would be possible to:

  • Run fast tasks during commit only
  • Run slower tasks during CI
  • Run GrumPHP for functional / acceptance tests
  • Run parts of the tests manually by specifying a testsuite.

Any thoughts?
/cc @aderuwe

@aderuwe
Copy link
Contributor

aderuwe commented Jan 26, 2016 via email

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

No branches or pull requests

2 participants