Git Product home page Git Product logo

Comments (11)

keithamus avatar keithamus commented on May 30, 2024 60

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.

jscharett avatar jscharett commented on May 30, 2024 15

My apologies, user error. Forgot to add require('karma-firefox-launcher') to the karma plugins.

from karma-firefox-launcher.

birtles avatar birtles commented on May 30, 2024 5

Maybe the README could be updated to reflect those options?

Added a mention in cfb2e38.

from karma-firefox-launcher.

applecool avatar applecool commented on May 30, 2024 3

Does Firefox has more flags like ignoreSSL?

from karma-firefox-launcher.

rik avatar rik commented on May 30, 2024 2

Maybe the README could be updated to reflect those options?

from karma-firefox-launcher.

jscharett avatar jscharett commented on May 30, 2024

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.

luissmg avatar luissmg commented on May 30, 2024

@jscharett can you provide your customLaunchers? and do you have karma-firefox-launcher installed?

from karma-firefox-launcher.

jscharett avatar jscharett commented on May 30, 2024

I have karma-firefox-launcher: 1.1.0 installed. I used the customLaunchers noted by @keithamus

from karma-firefox-launcher.

carlin-q-scott avatar carlin-q-scott commented on May 30, 2024

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.

birtles avatar birtles commented on May 30, 2024

I believe this was added 2 years ago (see a1fc1c8). You should be able to use FirefoxHeadless, FirefoxNightlyHeadless etc.

from karma-firefox-launcher.

AshuSingh07 avatar AshuSingh07 commented on May 30, 2024

install karma-firefox-launcher via npm:
npm install karma-firefox-launcher --save-dev

from karma-firefox-launcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.