BDD tests for Jenkins X using ginkgo
- golang https://golang.org/doc/install#install
- a Jenkins X installation
make bootstrap
will install ginkgo gomega and dep
If you are running the tests locally you probably want to set:
export GIT_ORGANISATION="my_cool_github_username"
Then to run all the tests in parallel:
make test-parallel
If you want the sequential version (You may be some time):
make test
Or you can run an individual spec like this:
make test-quickstart-golang-http
GIT_PROVIDER_URLthe git provider URL to test against. e.g. your GitHub Enterprise or BitBucket URLJX_DISABLE_CLEAN_DIRset totrueto disable cleaning up of the temporary work directoriesJX_DISABLE_DELETE_APPset totrueto disable deleting of the app from Jenkins X after a testJX_DISABLE_DELETE_REPOset totrueto disable deleting of the repo from Jenkins X after a testJX_DISABLE_TEST_PULL_REQUESTset totrueto disable testing the PR workflowJX_DISABLE_WAIT_FOR_FIRST_RELEASEset totrueto disable waiting for the first release pipeline to complete. Handy if you are testing/debugging the Pull Request flow as it speeds up the test