asciidoctor / asciidoctor.js

:scroll: A JavaScript port of Asciidoctor, a modern implementation of AsciiDoc
https://asciidoctor.org
MIT License
729 stars 135 forks source link

Use Firefox Headless in the benchmark #423

Open ggrossetie opened 6 years ago

ggrossetie commented 6 years ago

https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-the-Firefox-addon-in-headless-mode https://slimerjs.org/

mojavelinux commented 6 years ago

:+1:

ggrossetie commented 6 years ago

I think it's a bit too soon:

I will wait for the 1.0.0 "final" version.

thom4parisot commented 6 years ago

Hm, can't you use it with karma-firefox-launcher directly?

browsers: ['ChromeHeadlessNoSandbox', 'firefox'],

Karma would launch the tests with both browsers in parallel.

ggrossetie commented 6 years ago

I didn't try because I didn't know if we could report back how much time each run took ?

But we should definitely use Karma to run the tests suite against Chrome and Firefox.

ggrossetie commented 6 years ago

To be more specific I was looking for something similar to https://github.com/GoogleChrome/puppeteer but for Firefox

thom4parisot commented 6 years ago

I guess you could separate the runs with the build matrix (one for Chrome, one for Firefox).

language: node_js
matrix:
  include:
  - node_js: "stable"
    env: BROWSER=ChromeHeadlessNoSandbox
  - node_js: "stable"
    env: BROWSER=firefox
script: npm test -- --browser=$BROWSER

Alternatively, you can also run two separate commands within the same build (Travis lists how long it takes on the right handside of the build logs)

image
xaiborweb commented 6 years ago

@Mogztter , @mojavelinux , @oncletom , @ Hello friend, I have the same problem but with ubuntu 16.04 I am a newbie in this and I have only been able to install firefox as well. apt-get install firefox but in this way install version 58.02 and according to your comment it seems that it has no compatibility so I am trying to install firefox 57 on my vps ubuntu 16.04 without graphical environment but not achieved and could share the commands to install previous versions of firefox in linux ? Thank you ;)

ggrossetie commented 5 years ago

https://twitter.com/ChromiumDev/status/1070790759937269761?s=19

📣Announcing Puppeteer for Firefox 🤹🏻‍♂️💕🦊 An experimental project for controlling Firefox using Puppeteer's API. Still missing features but give it a try and let us know what you think! npm i puppeteer-firefox Learn more: https://t.co/WAxKExfCiu https://t.co/kTqw5HRA4h

ggrossetie commented 4 years ago

Even better (from the Puppeteer team): https://github.com/microsoft/playwright

We are the same team that built Puppeteer. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for all the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.