karma-runner / karma-phantomjs-launcher

A Karma plugin. Launcher for PhantomJS.
MIT License
281 stars 121 forks source link

It no longer works with karma@6 #217

Closed zloirock closed 3 years ago

zloirock commented 3 years ago

However, PhantomJS still is very useful as an indicator of problems with old engines.

johnjbarton commented 3 years ago

Please give some evidence. What makes you think this is true?

zloirock commented 3 years ago
Running "karma:tests" (karma) task
15 01 2021 01:05:33.277:INFO [karma-server]: Karma v6.0.0 server started at http://localhost:9876/
15 01 2021 01:05:33.281:INFO [launcher]: Launching browsers HeadlessChrome, PhantomJS with concurrency unlimited
15 01 2021 01:05:33.292:INFO [launcher]: Starting browser ChromeHeadless
15 01 2021 01:05:33.378:INFO [launcher]: Starting browser PhantomJS
15 01 2021 01:05:35.658:INFO [Chrome Headless 88.0.4298.0 (Windows 10)]: Connected on socket l5oKDnJKVtB-0ugDAAAB with id 77753041
Chrome Headless 88.0.4298.0 (Windows 10): Executed 530 of 534 (skipped 4) SUCCESS (1.147 secs / 0.925 secs)
15 01 2021 01:06:33.392:WARN [launcher]: PhantomJS have not captured in 60000 ms, killing.
15 01 2021 01:06:33.470:INFO [launcher]: Trying to start PhantomJS again (1/2).
15 01 2021 01:07:33.486:WARN [launcher]: PhantomJS have not captured in 60000 ms, killing.
15 01 2021 01:07:33.534:INFO [launcher]: Trying to start PhantomJS again (2/2).
15 01 2021 01:08:33.551:WARN [launcher]: PhantomJS have not captured in 60000 ms, killing.
15 01 2021 01:08:33.592:ERROR [launcher]: PhantomJS failed 2 times (timeout). Giving up.
TOTAL: 530 SUCCESS
Warning: Task "karma:tests" failed. Use --force to continue.
zloirock commented 3 years ago
// ...
        frameworks: ['qunit'],
        basePath: '.',
        browsers: ['HeadlessChrome', 'PhantomJS'],
        customLaunchers: {
          HeadlessChrome: {
            base: 'ChromeHeadless',
            flags: ['--no-sandbox', '--disable-setuid-sandbox'],
          },
        },
        singleRun: true,
// ...
johnjbarton commented 3 years ago

Unfortunately it does not look like anyone is maintaining this repo.

zloirock commented 3 years ago

It seems the problem is fixed in the actual karma version.