You could also set the CHROME_BIN environment variable to chromium

export CHROME_BIN=/usr/bin/chromium-browser
Answer from user1067920 on Stack Overflow
🌐
Chrome Developers
developer.chrome.com › blog › automated testing with headless chrome
Automated testing with Headless Chrome | Blog | Chrome for Developers
June 13, 2017 - Add a test script in package.json that runs Karma with our settings. ... When you run your tests (yarn test), Headless Chrome should fire up and output the results to the terminal:
🌐
Google Groups
groups.google.com › g › karma-users › c › OocaR-ZgHO8
How to debug karma-based unit tests in Chrome or Firefox
So open your regular Firefox (with Firebug installed) and navigate to http://localhost:9876/debug.html · By default, Karma opens browsers with an empty profile, without any extensions. You can also put "debugger" statement into the code and the browser will jump into debugger (as long as the ...
Discussions

View Karma Test Output in a Browser? - Stack Overflow
I would like to avoid having to maintain a separate runner.html file, since the Karma configuration file already requires me to include all necessary script links. ... On my Linux box Karma also opens Chromium and says it is connected but it then instantly closes the browser. And yes the singleRun is false in the Karma configuration. ... @ChrisFletcher I changed from Chrome to PhantomJS in the test... More on stackoverflow.com
🌐 stackoverflow.com
Is it possible to run Karma with no browsers at all?
Then, the grunt test reasonably failed because Karma can't find any browsers. (The browsers has not been set in the app's node_modules/karma config file.) I'm doing my development via SSH into a remote machine, which I think (let me know if I'm wrong) is pointless to have Chrome, /usr/bin/chromium-browser, installed. So is it possible to run ... More on stackoverflow.com
🌐 stackoverflow.com
angularjs - debug in browser using testacular (now karma) - Stack Overflow
Now in Chrome's Developer Tools source tab you should see the execution stopped at the debugger. ... Sign up to request clarification or add additional context in comments. ... Also realized that you can just set karma to singleRun: false and then just go to the browser that opens and breakpoint there in the tests, or the code :D 2013-06-03T08:54:39.333Z+00:00 ... I was running ... More on stackoverflow.com
🌐 stackoverflow.com
Use Karma testrunner On Google Chrome Extension
Sorry, run tests on the actual extension instead of individual bits of javascript. So I can issue commands to the extension and have chrome respond. ... Let me be more specific. The Karma test runner works by opening a page in a browser and running the js in that page. More on stackoverflow.com
🌐 stackoverflow.com
🌐
Medium
allenhwkim.medium.com › chrome-browser-test-with-karma-63a47784610c
Chrome Browser Test with Karma. Karma test runner with Headless Chrome | by Allen Kim | Medium
March 22, 2023 - Chrome Browser Test with Karma Karma test runner with Headless Chrome Init and install packages Create karma.conf.js Create a test, my-test.spec.js, which requires a browser Run Karma tests Init and …
🌐
Testim
testim.io › blog › karma-js-testing-what-why-and-how-to-get-going-right-now
Karma JS Testing: What, Why, and How to Get Going Right Now
December 11, 2021 - The command above installs the plugin we’ll need to work with Jasmine and the launcher for Google Chrome. Let’s now configure Karma. Run karma init. Then, let’s answer the questions one by one: Which testing framework do you want to use ? Press tab to list possible options.
🌐
Karma-runner
karma-runner.github.io › 0.10 › config › browsers.html
Karma - Browsers
As mentioned above above, only Chrome and PhantomJS come bundled with Karma. Therefore, to use other browsers naturally, simply install the required launcher first using NPM and then assign the browser setting within the configuration file using the browsers. Here's an example of how to add ...
Find elsewhere
🌐
JetBrains
jetbrains.com › help › webstorm › running-unit-tests-on-karma.html
Karma | WebStorm Documentation
March 10, 2026 - To see all the available CLI options, type karma start --help in the Terminal Alt+F12. Select the Karma run/debug configuration from the list of configurations and click   in the list or on the toolbar.
🌐
Damir's Corner
damirscorner.com › blog › posts › 20161018-DebuggingKarmaTestsInABrowser.html
Debugging Karma Tests in a Browser | Damir's Corner
October 18, 2016 - Chrome should only offer you a single matching source file to select. Once you do, all source mapped files should be correctly mapped and you should be able to set breakpoints directly inside the source files in your mapped folder. Do that and refresh the page to run the tests again.
🌐
Medium
medium.com › @sheng_di › karma-test-runner-with-headless-chrome-9391d800091
Karma test runner with Headless Chrome | by Sheng Di | Medium
October 9, 2018 - npm i --save-dev karma ... it and this is done via a configuration file. We’ll use a new launcher form karma test runner to execute tests by Chrome Headless....
🌐
Stack Overflow
stackoverflow.com › questions › 29829628 › use-karma-testrunner-on-google-chrome-extension
Use Karma testrunner On Google Chrome Extension
So I can issue commands to the extension and have chrome respond. ... Let me be more specific. The Karma test runner works by opening a page in a browser and running the js in that page.
🌐
JazzTeam
jazzteam.org › home › technical blueprints for developers: build, scale, and optimize systems › running tests with karma and jasmine manual
Running tests with Karma and Jasmine manual | JazzTeam technical articles
March 25, 2025 - ... npm install karma-jasmine karma-chrome-launcher karma-phantomjs-launcher –save – karma-plugins for running tests written in Jasmine, for running them in Chrome and PhantomJS browsers.
🌐
Medium
olegvaraksin.medium.com › how-to-set-up-and-run-fast-karma-tests-in-front-end-projects-61c17787615a
How to set up and run fast Karma tests in front-end projects | by Oleg Varaksin | Medium
October 6, 2016 - In my POC, I’ve written the following test: This test file is located under src/app/model/emf/EMFRegistry. Now I’m able to run this test in one of two ways: npm run test:chrome:grep -- app/model/emf/EMFRegistry.spec.ts
🌐
Software Testing Help
softwaretestinghelp.com › home › framework › karma tutorial: front-end unit testing using karma test runner
Karma Tutorial: Front-End Unit Testing Using Karma Test Runner
April 1, 2025 - To do that, we will use the node package manager and run these commands from the command line: npm install Karma-chrome-launcher Karma-firefox-launcher Karma-phantomjs-launcher –save-dev · All of us must have chrome and firefox browsers ...
🌐
Gleb Bahmutov
glebbahmutov.com › blog › debugging-karma-unit-tests
Debugging Karma Unit Tests | Better world by better software
April 23, 2024 - $ karma start karma.conf.js --browsers=Chrome INFO [karma]: Karma v0.12.16 server started at http://localhost:9876/ INFO [launcher]: Starting browser Chrome INFO [Chrome 37.0.2062 (Mac OS X 10.9.4)]: Connected on socket JdLYUgns9xLhl-F9xOjl with id 15416094 ....................... Chrome 37.0.2062 (Mac OS X 10.9.4): Executed 23 of 23 SUCCESS (0.052 secs / 0.041 secs) When I run the tests a Chrome browser icon flashes briefly and then disappears. In order to debug, we need to disable single run mode and keep Karma running
🌐
GitHub
github.com › karma-runner › karma-chrome-launcher
GitHub - karma-runner/karma-chrome-launcher: A Karma plugin. Launcher for Chrome and Chrome Canary. · GitHub
$ karma start --browsers Chrome,Chrome_without_security · The Chrome DevTools team created Puppeteer - it will automatically install Chromium for all platforms and contains everything you need to run it from within your CI.
Starred by 473 users
Forked by 123 users
Languages   JavaScript
🌐
Medium
maksimrv.medium.com › unit-testing-javascript-with-karma-playwright-puppeteer-1d54139d422
Unit testing JavaScript with Karma. Playwright & Puppeteer | by Maksim Ryzhikov | Medium
June 4, 2022 - npx karma start 30 01 2021 18:02:19.602:INFO [karma-server]: Karma v6.0.3 server started at http://localhost:9876/ 30 01 2021 18:02:19.604:INFO [launcher]: Launching browsers Chrome with concurrency unlimited 30 01 2021 18:02:19.609:INFO [launcher]: Starting browser Chrome 30 01 2021 18:02:31.497:INFO [Chrome 88.0.4298.0 (Mac OS 11.0.0)]: Connected on socket -gzowZLOc2OrrmCUAAAB with id 15605462 Chrome 88.0.4298.0 (Mac OS 11.0.0): Executed 2 of 2 SUCCESS (0.011 secs / 0.003 secs) TOTAL: 2 SUCCESS · Well. Now we can be sure that after run npm install a developer would have full-fledged test environment. We also can run Chrome without UI in headless mode by using ChromeHeadless as a default browser in karma.conf.js