Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Crosa - Allow users to pass lighthouse flags through the command line #19

Merged

Conversation

celsosantarosa
Copy link
Contributor

Enable users to call the lighthouse-ci and pass lighthouse flags, for instance:

lighthouse-ci --emulated-form-factor desktop --seo 92

@andreasonny83
Copy link
Owner

Thanks @celsosantarosa . That looks awesome. However I recently moved the lib/cli.js file under the bin folder where I also fixed an issue related to the best-practices flag #16 .
Are you able to merge in the latest changes from the master branch so I can proceed and accept your PR?

@celsosantarosa
Copy link
Contributor Author

Hi @andreasonny83,

Just implemented the changes we asked. Thank you for calling out the CLI issue.

Copy link
Owner

@andreasonny83 andreasonny83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's very good. Thanks again.

@andreasonny83 andreasonny83 merged commit 36ac48c into andreasonny83:master Nov 19, 2018
@andreasonny83
Copy link
Owner

closes #9

@DavidReinberger
Copy link

DavidReinberger commented Dec 17, 2018

Hi! I'm trying to use this feature unfortunately I had no luck with it, I'm running the CI with this command lighthouse-ci --preset perf -GA ./lighthouseArtifacts http://localhost:5000/community --report . which does not affect the runner at all

@andreasonny83
Copy link
Owner

@DavidReinberger you can pass any native Lighthouse flag to lighthouse-ci. Please have a look at this section of the readme and please, let me know if that solves your problem: https://github.com/andreasonny83/lighthouse-ci#lighthouse-flags

@DavidReinberger
Copy link

@andreasonny83 well it seems like the params are not passed there at all

@celsosantarosa
Copy link
Contributor Author

Hi @DavidReinberger,

Are you using the most recent version of lighthouse? I'm using lighthouse 1.3.0 and everything is working as expected. Here is how I am calling lighthouse-ci:

lighthouse-ci $URL --report $REPORT_PATH --performance $PERFORMANCE_THRESHOLD --pwa $PWA_THRESHOLD --accessibility $ACCESSIBILTY_THRESHOLD --best-practices $BEST_PRACTICE_THRESHOLD --seo $SEO_THRESHOLD --emulated-form-factor $EMULATED_FORM_FACTOR

Hope It helps you.

@andreasonny83
Copy link
Owner

I'm going to archive the conversation as it belongs to an already resolved PR. @DavidReinberger, if the explanation from @celsosantarosa doesn't solve your problems, please create a dedicated issue so other people can benefit from that. Thank you

Repository owner locked as too heated and limited conversation to collaborators Dec 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants