Comments (11)
In the meantime it is quite simple to set this up. Here is the minimum config options you need:
module.exports = config => {
config.set({
browsers: ['FirefoxHeadless'],
customLaunchers: {
FirefoxHeadless: {
base: 'Firefox',
flags: [ '-headless' ],
},
},
})
}
from karma-firefox-launcher.
My apologies, user error. Forgot to add require('karma-firefox-launcher')
to the karma plugins.
from karma-firefox-launcher.
Maybe the README could be updated to reflect those options?
Added a mention in cfb2e38.
from karma-firefox-launcher.
Does Firefox has more flags like ignoreSSL
?
from karma-firefox-launcher.
Maybe the README could be updated to reflect those options?
from karma-firefox-launcher.
Not able to get Headless working in my angular project. I tried setting just 'FirefoxHeadless' and I get
16 05 2018 11:06:22.318:ERROR [launcher]: Cannot load browser "FirefoxHeadless": it is not registered! Perhaps you are missing some plugin?
If I add it as a customLauncher I get this
16 05 2018 11:09:10.129:ERROR [launcher]: Cannot load browser "FirefoxHeadless"!
Error: No provider for "launcher:Firefox". Can not use provider from the parent!
at C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\di\lib\injector.js:84:17
at Array.forEach (<anonymous>)
at Injector.createChild (C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\di\lib\injector.js:82:27)
at module.(anonymous function) (C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\karma\lib\config.js:274:33)
at Array.invoke (C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\di\lib\injector.js:75:15)
at Injector.get (C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\di\lib\injector.js:48:43)
at C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\karma\lib\launcher.js:72:76
at C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\karma\lib\launcher.js:139:49
at Array.forEach (<anonymous>)
at Launcher.launch (C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\karma\lib\launcher.js:138:13)
at Injector.invoke (C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\di\lib\injector.js:75:15)
at Server.<anonymous> (C:\Users\ZGCFXPC\workspace\atsp-udr2-ui-main\node_modules\karma\lib\server.js:207:26)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at Server.emit (events.js:208:7)
at emitListeningNT (net.js:1378:10)
Is there something else I need to configure? I have Firefox 60 installed.
from karma-firefox-launcher.
@jscharett can you provide your customLaunchers
? and do you have karma-firefox-launcher
installed?
from karma-firefox-launcher.
I have karma-firefox-launcher: 1.1.0
installed. I used the customLaunchers noted by @keithamus
from karma-firefox-launcher.
Can this request be reconsidered? It has been two years and frankly I think most people will want their tests to run in headless mode so that they run faster.
from karma-firefox-launcher.
I believe this was added 2 years ago (see a1fc1c8). You should be able to use FirefoxHeadless
, FirefoxNightlyHeadless
etc.
from karma-firefox-launcher.
install karma-firefox-launcher via npm:
npm install karma-firefox-launcher --save-dev
from karma-firefox-launcher.
Related Issues (20)
- Launcher doesn't kill Firefox 68 HOT 20
- Release a new version? HOT 6
- Firefox 68.x won't run (from inside docker) HOT 49
- Running into wslpath error HOT 16
- Can't run Linux Firefox on WSL HOT 6
- Can you publish a new patch version to fix WSL? HOT 10
- Require Node 10 as a minimum version HOT 1
- Release new version HOT 4
- Provide a way to launch different versions of Firefox HOT 4
- Stopped working since Firefox 90.0.2 HOT 7
- Travis CI is no longer running HOT 29
- Firefox snap has no access to /tmp profiles path HOT 9
- Missing require('karma-firefox-launcher') line in the configuration section of the README HOT 5
- Tests are slow when browser is minized HOT 8
- Firefox headless settings are not working for some reason
- FirefoxHeadless is not captured in containered GitHub action with node 16 HOT 5
- Firefox slow compared to Chrome HOT 2
- Add doc deprecation recommending @web/test-runner-playwright HOT 1
- Cannot start Firefox (or FirefoxHeadless) 121 on macOS Sonoma 14.2.1 (23C71) HOT 9
- Random errors : cannot start Firefox/FirefoxHeadless HOT 19
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-firefox-launcher.