addamsson
03/04/2020, 3:37 PMbrowser
as a target for my MPP project and I'm getting this error:
04 03 2020 16:26:34.829:ERROR [launcher]: No binary for ChromeHeadless browser on your platform.
Please, set "CHROME_BIN" env variable.
What can I do to fix this?
I tried to add chrome as the docs states:
browser {
testTask {
useKarma {
useChrome()
}
}
}
but I get the same error. How can I make my builds run out of the box (without having to set env variables)?Eivind Nilsbakken
03/04/2020, 3:57 PMbrowser { testTask { enabled = false } }
. That way, the browser task shouldn't look for a browser binary.addamsson
03/04/2020, 4:00 PMEivind Nilsbakken
03/04/2020, 4:00 PMaddamsson
03/04/2020, 4:03 PMIlya Goncharov [JB]
03/04/2020, 7:27 PMuseFirefox
for example
Or even you can try to use useMocha()
instead of useKarma
addamsson
03/04/2020, 7:43 PMIlya Goncharov [JB]
03/04/2020, 7:47 PMaddamsson
03/04/2020, 7:55 PMEivind Nilsbakken
03/04/2020, 7:57 PMaddamsson
03/04/2020, 7:58 PMEivind Nilsbakken
03/04/2020, 7:59 PMaddamsson
03/04/2020, 8:07 PMEivind Nilsbakken
03/04/2020, 8:17 PMcircleci/node:latest-browsers
might be a good fit. It has Firefox and Chrome installed (and node+npm, of course).addamsson
03/06/2020, 9:31 AM