25

Is it possible to run karma tests with chromium browser, in order to run these karma tests on linux box which has an open source version of chrome in it?

Kamal Reddy
  • 2,610
  • 5
  • 28
  • 36

1 Answers1

37

You could also set the CHROME_BIN environment variable to chromium

export CHROME_BIN=/usr/bin/chromium-browser
user1067920
  • 1,492
  • 15
  • 8
  • 8
    For me it was `export CHROME_BIN=/usr/bin/chromium` – Agush Aug 20 '14 at 20:52
  • 5
    This [isn't needed any more](https://github.com/karma-runner/karma-chrome-launcher/commit/46e14284ef9bd575ec88b9e62f36f81aaedd56d2). I didn't have to do it for karma-chrome-launcher 0.2.0. – z0r Aug 28 '15 at 13:27
  • this worked for me, i was able to run my test with chromium-browser while keeping my karma.conf.js option as browsers: ['Chrome'], – ArrowHead Jan 08 '17 at 13:07
  • @z0r seems to be required again for Angular 2+ –  Aug 14 '19 at 11:24