diff options
author | baude <bbaude@redhat.com> | 2018-02-08 10:40:43 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2018-02-08 12:37:07 -0600 |
commit | c089cb9c9270aa4b367deb8c8c03cb05f8860a33 (patch) | |
tree | 8d765658f757798e1578fd2fc96f1528e6af5e20 /README.ginkgo.md | |
parent | 8fdccb77648f5b772c6bae98fce4734b1a54ed4a (diff) | |
download | podman-c089cb9c9270aa4b367deb8c8c03cb05f8860a33.tar.gz podman-c089cb9c9270aa4b367deb8c8c03cb05f8860a33.tar.bz2 podman-c089cb9c9270aa4b367deb8c8c03cb05f8860a33.zip |
Final ginkgo migration
Completion of the migration from bats to ginkgo. This includes:
* load
* mount
* pause
* port
* run_networking
* search
Note: build will be done within a different PR
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'README.ginkgo.md')
-rw-r--r-- | README.ginkgo.md | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/README.ginkgo.md b/README.ginkgo.md deleted file mode 100644 index 78fb52cab..000000000 --- a/README.ginkgo.md +++ /dev/null @@ -1,59 +0,0 @@ -# Integration testing - -Our primary means of performing integration testing for libpod is with the -[Ginkgo](https://github.com/onsi/ginkgo) BDD testing framework. This allows -us to use native Golang to perform our tests and there is a strong affiliation -between Ginkgo and the Go test framework. - -## Installing dependencies -The dependencies for integration really consists of three things: -* ginkgo binary -* ginkgo sources -* gomega sources - -The following instructions assume your GOPATH is ~/go. Adjust as needed for your -environment. - -### Installing ginko -Fetch and build ginkgo with the following command: -``` -GOPATH=~/go go get -u github.com/onsi/ginkgo/ginkgo -``` -Now install the ginkgo binary into your path: -``` -install -D -m 755 "$GOPATH"/bin/ginkgo /usr/bin/ -``` -You now have a ginkgo binary and its sources in your GOPATH. - -### Install gomega sources -The gomega sources can be simply installed with the command: -``` -GOPATH=~/go go get github.com/onsi/gomega/... -``` - -### Running the integration tests - -You can run the entire suite of integration tests with the following command: - -``` -GOPATH=~/go ginkgo -v tests/e2e/. -``` - -Note the trailing period on the command above. Also, **-v** invokes verbose mode. That -switch is optional. - -You can run a single file of integration tests using the go test command: - -``` -GOPATH=~/go go test -v tests/e2e/libpod_suite_test.go tests/e2e/your_test.go -``` - -#### Run all tests like PAPR -You can closely emulate the PAPR run for Fedora with the following command: - -``` -make integration.fedora -``` - -This will run lint, git-validation, and gofmt tests and then execute unit and integration -tests as well. |