7cbe1e493e
Contains test runner Docker file and a sample smoke test. Smoke test build PolyGerrit app, serves it locally and expects page title to be updated to the default value. Change-Id: I8ab2ca8a97830eefa1c697c2e51be82cbc1657c7 |
||
---|---|---|
.. | ||
infra | ||
README.md | ||
run_functional.sh | ||
test.js |
Functional test suite
Installing Docker (OSX)
Simplest way to install all of those is to use Homebrew:
brew cask install docker
This will install a Docker in Applications. To run if from the command-line:
open /Applications/Docker.app
It'll require privileged access and will require user password to be entered.
To validate Docker is installed correctly, run hello-world image:
docker run hello-world
Building a Docker image
Should be done once only for development purposes, run from the Gerrit checkout path:
docker build -t gerrit/polygerrit-functional:v1 \
polygerrit-ui/app/test/functional/infra
Running a smoke test
Running a smoke test from Gerrit checkout path:
./polygerrit-ui/app/test/functional/run_functional.sh
The successful output should be something similar to this:
Starting local server..
Starting Webdriver..
Started
.
1 spec, 0 failures
Finished in 2.565 seconds