gerrit/polygerrit-ui
Andrew Bonventre 18f76a6190 Add Shadow DOM to the PolyGerrit test suite
This change runs all tests with Shadow DOM both on and off (in
supported browsers). It also fixes issues that needed to be
addressed due to a lack of understanding about Shadow DOM in light of
it not being turned on.

For more info on where 99% of the issues were, visit
https://www.polymer-project.org/1.0/docs/devguide/local-dom.html

This also removes a test-fixture dep and moves to webcomponents-lite.js
per https://github.com/PolymerElements/polymer-starter-kit/issues/473

Change-Id: I93889d99442af5ecfc0165f45373c8a24fb74e0d
2015-11-30 13:13:42 -05:00
..
app Add Shadow DOM to the PolyGerrit test suite 2015-11-30 13:13:42 -05:00
.gitattributes Add the skeleton of a new UI based on Polymer, PolyGerrit 2015-11-09 22:01:28 +00:00
.gitignore Add the skeleton of a new UI based on Polymer, PolyGerrit 2015-11-09 22:01:28 +00:00
bower.json Add Shadow DOM to the PolyGerrit test suite 2015-11-30 13:13:42 -05:00
BUCK Support deps for bower_component rules 2015-11-23 08:57:58 -05:00
README.md Run PolyGerrit tests with Buck 2015-11-25 11:14:05 -05:00
server.go Login/logout buttons with basic account manager 2015-11-24 21:27:00 -05:00
wct.conf.js Add the skeleton of a new UI based on Polymer, PolyGerrit 2015-11-09 22:01:28 +00:00

PolyGerrit

Installing Node.js

# Debian/Ubuntu
sudo apt-get install nodejs-legacy

# OS X with Homebrew
brew install node

All other platforms: download from nodejs.org.

Local UI, Production Data

To test the local UI against gerrit-review.googlesource.com:

cd polygerrit-ui
npm install
bower install
go run server.go

Then visit http://localhost:8081

Local UI, Test Data

One-time setup:

  1. Install Buck for building Gerrit.
  2. Build Gerrit and set up a local test site.

Run a test server:

buck build polygerrit && \
java -jar buck-out/gen/polygerrit/polygerrit.war daemon --polygerrit-dev -d ../gerrit_testsite --console-log --show-stack-trace

Running Tests

One-time setup:

# Debian/Ubuntu
sudo apt-get install npm

# OS X with Homebrew
brew install npm

# All platforms (including those above)
sudo npm install -g web-component-tester

Run all web tests:

buck test --include web

If you need to pass additional arguments to wct:

WCT_ARGS='-p --some-flag="foo bar"' buck test --no-results-cache --include web