Merge pull request #88 from jakalkhalili/master
Add e2e guide for macOS
This commit is contained in:
commit
c4944a7cfd
|
|
@ -61,6 +61,8 @@ Run unit tests:
|
||||||
make test
|
make test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Running E2E tests on Linux
|
||||||
|
|
||||||
Run e2e tests with minikube:
|
Run e2e tests with minikube:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
@ -75,6 +77,30 @@ Run the specific e2e test:
|
||||||
make build e2e E2E_TEST_SELECTOR='^TestConfiguration$'
|
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
|
## Tips & Tricks
|
||||||
|
|
||||||
### Building docker image on minikube (for e2e tests)
|
### Building docker image on minikube (for e2e tests)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue