Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow developer to specify e2e test name on cli #1526

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ test-e2e: test-e2e-setup install-ginkgo
--ginkgo.vv \
--ginkgo.no-color=$(OPENSHIFT_CI) \
--ginkgo.label-filter="$(TEST_FILTER)" \
--ginkgo.timeout=2h
--ginkgo.timeout=2h \
$(GINKGO_ARGS)

.PHONY: test-e2e-cleanup
test-e2e-cleanup: login-required
Expand Down
7 changes: 6 additions & 1 deletion docs/developer/testing/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,14 @@ FContext("test scenario", func() { ... })
FIt("the assertion", func() { ... })
...
```

These need to be removed to run all specs. Checks [Ginkgo docs](https://onsi.github.io/ginkgo/) for more info.

You can also execute make test-e2e with a $GINKGO_ARGS variable set. Example:

```bash
make test-e2e GINKGO_ARGS="--ginkgo.focus='MySQL application DATAMOVER'"
```

## Clean up

To clean environment after running E2E tests, run
Expand Down