mojotech / pioneer

Integration Testing
MIT License
527 stars 35 forks source link

Fix tags arguments for the command line #330

Closed mAiNiNfEcTiOn closed 8 years ago

mAiNiNfEcTiOn commented 9 years ago

Based on https://github.com/cucumber/cucumber/wiki/Tags#logically-anding-and-oring-tags, if you executed:

node_modules/.bin/pioneer --tags=tagOne --tags=tagTwo

The tags were being ORed instead of ANDed.

The changes in this PR make the array of tags to be considered AND, and the string to be considered OR.

By the way, I tried executing like this:

node_modules/.bin/pioneer --tags=tagOne, tagTwo

But to properly be an argument, it should either be:

node_modules/.bin/pioneer --tags=tagOne,tagTwo

or

node_modules/.bin/pioneer --tags="tagOne, tagTwo"