Skip to content

JoelEinbinder/bisect-chrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bisect-chrome

Basic Usage:

  • npx bisect-chrome

Advanced Usage:

  • npx bisect-chrome [--manual] [--good <revision>] [--bad <revision>] [<script>]

Parameters:

  • --manual manually respond with "good" or "bad" instead of running script
  • --good revision that is known to be GOOD. Defaults to the latest revision
  • --bad revision that is known to be BAD. Defaults to 305043
  • --shell a shell script to run instead of a script path
  • <script> path to a Puppeteer script that returns a non-zero code for BAD and 0 for GOOD.

Example:

  • npx bisect-chrome --good 577361 --bad 599821 simple.js
  • npx bisect-chrome --good 577361 --bad 599821 --shell "npm run ctest"
  • npx bisect-chrome --manual --good 577361 --bad 599821

Use https://omahaproxy.appspot.com/ to find revisions.

Note: The Chromium executable path is exposed to the script as the `CRPATH` environment variable.

If a script is specified, launching Puppeteer from within that script will use the current Chromium revision. Revisions older than 493957 won't work with modern Puppeteer.

This script was extracted from Puppeteer's bisect.js and then cleaned up a bit for public use.

About

Like git bisect, but for Chrome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •