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

Document how to run a partial set of tests #243

Closed
rhuffstedtler opened this issue Jul 25, 2016 · 2 comments
Closed

Document how to run a partial set of tests #243

rhuffstedtler opened this issue Jul 25, 2016 · 2 comments
Assignees

Comments

@rhuffstedtler
Copy link
Contributor

As we are adding tests, it takes an increasingly long time for the entire test suite to run. When making a change to a specific module, I would like to be able to pass an optiont to blt.sh tests:behat that would only run a particular feature. If there is a means of doing so, it is not obvious to me, so I've fallen back to dropping a shell script in each module's tests dir with this as its contents:

../../../../../vendor/bin/behat --config=../../../../../tests/behat/local.yml --tags=~ajax --format=pretty --format=junit features/ --profile=local

If there is a better way, it would be great to get that in the docs.

@ChuChuNaKu
Copy link

Hello @rhuffstedtler. To execute tests directly (without Phing) you can run something like:
./vendor/bin/behat -c tests/behat/local.yml tests/behat/features/Examples.feature You could also use gherkin filters to categorize and run a group of features. Addtional testing documentation can be found at /tests/README.md

@grasmash
Copy link
Contributor

grasmash commented Aug 9, 2016

You can also pass the value of behat.tags to blt, e.g., blt tests:behat -Dbehat.tags='@mytag'

@grasmash grasmash added the ready label Aug 9, 2016
grasmash added a commit to grasmash/bolt that referenced this issue Aug 11, 2016
@grasmash grasmash self-assigned this Aug 11, 2016
@grasmash grasmash added Enhancement A feature or feature request documentation and removed Enhancement A feature or feature request labels Sep 1, 2016
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

3 participants