Merge pull request #88 from jakalkhalili/master

Add e2e guide for macOS
This commit is contained in:
Tomasz Sęk 2019-09-04 13:31:26 +02:00 committed by GitHub
commit c4944a7cfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions

View File

@ -61,6 +61,8 @@ Run unit tests:
make test
```
### Running E2E tests on Linux
Run e2e tests with minikube:
```bash
@ -75,6 +77,30 @@ Run the specific e2e test:
make build e2e E2E_TEST_SELECTOR='^TestConfiguration$'
```
### Running E2E tests on macOS
At first, you need to start minikube:
```bash
$ make minikube-start
$ eval $(minikube docker-env)
```
Build Docker image inside provided Linux container by:
```bash
$ make indocker
```
Build **jenkins-operator** inside container using:
```bash
$ make build
```
Then exit the container and run:
```
make e2e
```
## Tips & Tricks
### Building docker image on minikube (for e2e tests)