Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1023 Bytes

CONTRIBUTING.md

File metadata and controls

27 lines (19 loc) · 1023 Bytes

Contributing

Tests

Test coverage

For every Pull Request on GitHub and on the main branch the coverage data will get sent over to Coveralls, this is helpful for finding functions that aren't covered by tests.

Running tests

You can use the BROWSER environment variable to use a different browser than Chromium for the tests and use the HEADLESS environment variable which is useful for debugging.

BROWSER=chromium HEADLESS=1 go test -v --race ./...

Roll

  1. Find out to which upstream version you want to roll, you need to find out the upstream commit SHA.
  2. bash scripts/apply-patch.sh
  3. cd playwright
  4. reset HEAD~1 this reverts the custom patches
  5. git stash
  6. checkout new new sha git checkout <sha>
  7. apply the patch again git stash pop (and fix merge conflicts)
  8. once you are happy you can commit the changes git commit -am "apply patch"
  9. regenerate a new patch bash scripts/update-patch.sh