summaryrefslogtreecommitdiffstats
path: root/polygerrit-ui/app/test/functional/README.md
blob: 82c613360d0a641b0fe9ee6781ec3b9dedf3d741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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
```