Comments (3)
@uraikwar were you able to figure it out?
from karma-chrome-launcher.
Hi @jginsburgn,
Yes, I figured it out.
Karma launches the browser as a subprocess and consumes its input and output/err stream. So, technically there is no hook is provided that we can use to print the browser's debug log in the console without modifying the karma's code.
One of the good options could be to print the browser's debug log in a file instead of the console. This can be done by setting an environment variable CHROME_LOG_FILE for the file location.
process.env['CHROME_LOG_FILE'] = '/opt/chrome/chrome_debug.log'; // or by setting the env at OS level before running Karma.
and launcher config looks like this:
defaultConfig.customLaunchers["ChromeWithLogs"] = {
base: "Chrome",
flags: ["--enable-logging=stderr", "--v=1"]
};
from karma-chrome-launcher.
Thanks for sharing!
from karma-chrome-launcher.
Related Issues (20)
- Single run true is not launching KARMA chrome browser(chrome_bin env variable Issue) in SAPUI5
- Chrome headless fails to start
- Karma fails to capture Chrome v93 (but OK with Chrome Headless) HOT 1
- libXcomposite HOT 1
- Headless Chromium without Puppeteer HOT 2
- Broken link to project homepage HOT 1
- Set user agent
- Set Up CI/CD with GitHub Actions HOT 1
- Use Semantic Release instead of Grunt
- Using chrome with Windows+WSL
- Chrome not launching on Ubuntu 20.04 HOT 1
- Disallow `chore` Commit Type Across Org HOT 1
- npm i -D karma-chrome-launcher
- Tests are running slower on the launched chrome browser HOT 4
- Chrome headless lost WebGL support on MacOS HOT 7
- Using puppeteer Chrome bin broken with version 111
- Support for Chrome's new headless mode
- Add doc deprecation recommending @web/test-runner-chrome
- Add --disable-backgrounding-occluded-windows to default flags
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma-chrome-launcher.