These are chat archives for mojotech/pioneer

8th
Jan 2015
Tom Hicks
@tomhicks-bsf
Jan 08 2015 13:16
@samccone How active are you with pioneer? We've adopted it at our company and want to contribute the improvements we've found we need for our CI process, but we're currently having to run off forked versions on github. We could just push a forked version onto NPM but I don't really want to do that if you're still working on it.
Sam Saccone
@samccone
Jan 08 2015 14:51
:)
samccone @samccone pioneer@0.11.0 is out!
Sam Saccone
@samccone
Jan 08 2015 14:51
@tomhicks-bsf hey
we use it everyday at my job
on one of our largest projects
it is still very much in use
Sorry I have been slow to update, been bogged down in feature dev on this project, but I plan on maintaining it for sure :D just :clock1:
thats for the great work that you have already done to it, really appreciate it
Sam Saccone
@samccone
Jan 08 2015 15:18
hi @tomhicks-bsf
Tom Hicks
@tomhicks-bsf
Jan 08 2015 15:19
yo - cheers for merging that in
Sam Saccone
@samccone
Jan 08 2015 15:19
hey np
thats for the great pr's
really appreciate it
Tom Hicks
@tomhicks-bsf
Jan 08 2015 15:19
no worries- we'll have a sauce labs one coming quite soon as well
oh, and check out https://www.npmjs.com/package/expedition (totally undocumented as of now) and run pioneer --format=json | ./node_modules/bin/expedition
Sam Saccone
@samccone
Jan 08 2015 15:21
ohhhh awesome
looking right now
@tomhicks-bsf where do you work?
Tom Hicks
@tomhicks-bsf
Jan 08 2015 15:22
in Bristol UK, for a company called Blue Speck Financial
(I have tomhicks and tomhicks-bsf github accounts, in case you see me appear as @tomhicks!)
Sam Saccone
@samccone
Jan 08 2015 15:23
very cool
Tom Hicks
@tomhicks-bsf
Jan 08 2015 15:24
I have some plans for this in the future, too https://www.pivotaltracker.com/n/projects/1219680
But pioneer has been invaluable for us, and especially with regards to promoting the Page Object Model approach, so thanks for that!
Sam Saccone
@samccone
Jan 08 2015 15:26
no problem, there are some unfortunate limitations of cucumber
i have admin priv on that repo...
the amount that needs to change to make it work in a more “node” way is… immense
Tom Hicks
@tomhicks-bsf
Jan 08 2015 15:27
could be useful :)
Sam Saccone
@samccone
Jan 08 2015 15:27
(i have admin on cucumber)
but heh :P
time, never enough
Tom Hicks
@tomhicks-bsf
Jan 08 2015 15:28
yeah in trying to do Sauce Labs integration, we're having to use global variables or serialized json to get values "into" cucumber.
Sam Saccone
@samccone
Jan 08 2015 15:28
yeah...
it is kinda the pits
part of me just wants to rip out the parser
the gherkin part ...
Tom Hicks
@tomhicks-bsf
Jan 08 2015 15:29
and implement your own step definition registry?
Sam Saccone
@samccone
Jan 08 2015 15:29
yeah...
would not be impossible
prob a few weeks of work to do correctly
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:05
just started a pioneer w/ Sauce Labs test run on our CI server...fingers crossed....
Sam Saccone
@samccone
Jan 08 2015 16:05
ohhhHHHHhhhsnapppp
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:37
success!
Sam Saccone
@samccone
Jan 08 2015 16:42
oh sweet
@tomhicks-bsf is there a PR incoming?
or how do you view this?
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:44
well the sauce labs config is hardcoded into support/index.coffee - we just want to test the integration for our CI server for now
Sam Saccone
@samccone
Jan 08 2015 16:45
yeah, someone we will wantto expose that index.coffee config
to the user
that is the path that I have always thought we would go down
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:46
I can't think of a good way to do that with the whole ['--require', './support/index'] requirement for cucumber
Sam Saccone
@samccone
Jan 08 2015 16:46
yeah...
luckily we have made pioneer.json
:P
to put in json values
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:47
but how do you transport those into cucumber? I would like to send over capabilities as an object
because config_builder just pushes libPath + 'support' into the cucumber args
Sam Saccone
@samccone
Jan 08 2015 16:48
@tomhicks-bsf
see how this line works?
it reaches into argv
we can basically have something like argv.customDriverBuilder?
or something
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:49
which would be what? a path to a js file?
Sam Saccone
@samccone
Jan 08 2015 16:49
a method
i think
that it will invoke
and return a driver instance
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:50
aaah ok, so push a method into argv
Sam Saccone
@samccone
Jan 08 2015 16:50
kinda...
i think
:)
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:50
so argv is no longer really process.argv
Sam Saccone
@samccone
Jan 08 2015 16:50
correct
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:50
it's basically a global namespace we use for shovelling things around
correct
there are kinda two levels of it tho
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:51
ok cool this sounds marginally better than global.extraConfigThatIWantInCucumber = {...}
Sam Saccone
@samccone
Jan 08 2015 16:51
but i think it should be possible
:)
yeah hahahaha
good ol cucumber
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:52
ok I'll hopefully get a PR for this this week - then we can sync back up with npm pioneer
thanks for the suggestions on this
Sam Saccone
@samccone
Jan 08 2015 16:53
yeah no worries, we can pair on it if you want at somepoint
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:53
ok i'll probably put in an early PR with some stuff hacked about and we'll take that as a starting point
Sam Saccone
@samccone
Jan 08 2015 16:53
k
Tom Hicks
@tomhicks-bsf
Jan 08 2015 16:54
wicked
I've got to get some actual work done today, so I'm off for a bit. cheers for your help
Sam Saccone
@samccone
Jan 08 2015 16:54
heh same :P
thanks again
Jarid Margolin
@jaridmargolin
Jan 08 2015 21:14
:clap: for SauceLabs