These are chat archives for mojotech/pioneer

14th
Jul 2015
Ricardo Machado
@mAiNiNfEcTiOn
Jul 14 2015 06:25

So, say you want to put 2 tags on a specific scenario, and then you want to run pioneer and get only the scenarions that match those 2 tags (so, an AND clause) how can you do it?
If I do:

node_modules/.bin/pioneer --tags="@tag1, @tag2”

doesn’t really work that way… it runs scenarios that have @tag1, and run scenarios that have @tag2… So we can’t really use tags as a filtering system, right?

Artem Kozlov
@aindlq
Jul 14 2015 13:15
Ricardo Machado
@mAiNiNfEcTiOn
Jul 14 2015 13:25

Well… either I am doing something wrong or that system of

node_modules/.bin/pioneer --tags=@tag1 --tags=@tag2

it is not working :/

Artem Kozlov
@aindlq
Jul 14 2015 13:31
it works for me, but I think this is because I'm using newer version of cucumber-js together with pioneer
Ricardo Machado
@mAiNiNfEcTiOn
Jul 14 2015 13:31
Ahhh
let me check
Artem Kozlov
@aindlq
Jul 14 2015 13:32
basically I use npm shrinkwrap to override cucumberjs to 0.4.8
Ricardo Machado
@mAiNiNfEcTiOn
Jul 14 2015 13:38
Hmmm
I am using 5.x and still doesn’t work :x
Artem Kozlov
@aindlq
Jul 14 2015 13:43
remove =
just node_modules/.bin/pioneer --tags @tag1 --tags @tag2
Ricardo Machado
@mAiNiNfEcTiOn
Jul 14 2015 13:44
@aindlq Tried that too
I think it is related with this: https://github.com/mojotech/pioneer/pull/194/files
IMHO I think it has been changed to concat with “,” which kills the AND clause and transforms it into OR
Going to try that in the prev version of that commit
Artem Kozlov
@aindlq
Jul 14 2015 13:46
hm, I'm using latest published version 0.11.4
and it works as and
Ricardo Machado
@mAiNiNfEcTiOn
Jul 14 2015 13:46
that’s strange.
I’ve tried a tag in the Feature and a tag in the Scenario and then run the command
(leaving the first scenario without the tag)… and it still runs the 1st scenario
mAiNiNfEcTiOn @mAiNiNfEcTiOn the commit is from 2014 … can’t be that!
Artem Kozlov
@aindlq
Jul 14 2015 13:48
uh ...
@mAiNiNfEcTiOn sorry for the confusion
.... you are right, it was my fault, it works as or for me as well
Ricardo Machado
@mAiNiNfEcTiOn
Jul 14 2015 13:49
ahhh
:D
:D
I really think is that line on the config builder
Testing now
god I was going crazy thinking it was my env
Ricardo Machado
@mAiNiNfEcTiOn
Jul 14 2015 19:44
@aindlq thanks for confirming the issue, I am going to issue a PR to fix it :)