These are chat archives for mojotech/pioneer

26th
May 2015
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 06:56
@StevenLangbroek how did you set the json format in pioneer?! If I set it, it says
throw new Error("Unknown formatter name \"" + format + "\".");
Ah no wait
(misconfiguration… sorry, still sleepy :)) Will debug now the issue :D
Steven Langbroek
@StevenLangbroek
May 26 2015 13:36
^
SyntaxError: Unexpected token
                                  at Object.parse (native)
    at cucumberJunit (/usr/local/lib/node_modules/cucumber-junit/lib/cucumber_junit.js:115:29)
    at Socket.<anonymous> (/usr/local/lib/node_modules/cucumber-junit/bin/cucumber-junit:15:26)
    at Socket.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickCallback (node.js:448:13)
Steven Langbroek
@StevenLangbroek
May 26 2015 14:17
anybody seen that before?
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 16:13
How about outputting the JSON to a file, passing it through a JSON Parser/Validator and check if it’s ok?
Steven Langbroek
@StevenLangbroek
May 26 2015 16:25
ha
funny story
it's because of the line Configuration loaded from [path] pioneer.json
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 16:26
yeah :)
I got the same problem
Steven Langbroek
@StevenLangbroek
May 26 2015 16:26
@samccone thoughts?
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 16:26
that is solved by tailling it wc -l -1
let me give you the line wait
Steven Langbroek
@StevenLangbroek
May 26 2015 16:26
i'm quite the boob at command-line stuff :D
so any help is greatly appreciated
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 16:35
sorry got interrupted...
So … as I was saying you need to remove the first line...
better yet you can use tailling itself:
pioneer --format=json > results.json && tail -n+1 results.json | cucumber-junit > results.xml
dunno if you can use tail immediately… let me check
yeah you can
Steven Langbroek
@StevenLangbroek
May 26 2015 16:38
same result here
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 16:38
so it becomes:
pioneer --format=json | tail -n+2 | cucumber-junit > results.xml
(sorry made a mistake it was +2
damnit… wait
there :)
Steven Langbroek
@StevenLangbroek
May 26 2015 16:39
sweet
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 16:39
;)
Steven Langbroek
@StevenLangbroek
May 26 2015 16:39
thnx a million dude!
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 16:39
(Y) np
Steven Langbroek
@StevenLangbroek
May 26 2015 16:39
next stop: saucelabs :D
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 16:39
eheh saucelabs is easy :) but I had to change stuff in the selenium-webdriver builder.js
to accept my capabilities … however @tomhicks said that the best way is to create your own ‘driver’ configuration :) which is nice ;)
Steven Langbroek
@StevenLangbroek
May 26 2015 20:11
meh, need it-ops to install chrome webdriver into ci machines
more fun tomorrow
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 20:11
hmmm
Steven Langbroek
@StevenLangbroek
May 26 2015 20:12
Error: The ChromeDriver could not be found on the current PATH. Please download the latest version of the ChromeDriver from http://chromedriver.storage.googleapis.com/index.html and ensure it can be found on your PATH.
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 20:13
Ahm… but weren’t you using Sauce Labs?
Steven Langbroek
@StevenLangbroek
May 26 2015 20:13
going to eventually
for now i wanna report some progress and have my test-results in jenkins (they're public within the company)
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 20:14
hmmm
Steven Langbroek
@StevenLangbroek
May 26 2015 20:14
oh well, no biggie :)
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 20:14
you can download the ChromeDriver and point the path to it … but oh well :) wait for them then :)
Steven Langbroek
@StevenLangbroek
May 26 2015 20:14
yeah i don't have that level of access to the ci/staging machines
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 20:15
oh ok ok ;) :)
Steven Langbroek
@StevenLangbroek
May 26 2015 20:15
(which is a good thing, we have about a 130 devs deploying to those machines)
Ricardo Machado
@mAiNiNfEcTiOn
May 26 2015 20:16
sure of course :) for now I’m setting up a machine outside of the CI … if that works, than we’ll bring a VM for that :)