This repository consists of testing services provided by ALMighty.
-
Running project build in different configurations in isolated sets of docker containers
Project itself depends on following tools, which are incorporated into the build process:
Stay tuned! Work in progress :) For the moment this repository consists of basic functionalities and infrastructure to write and test the code.
You need to have following packages in place
-
go
(>= v1.6) -
git
-
make
Assuming that you have all the Golang prerequisites in place (such as $GOPATH
), clone the repository first:
$ git clone https://github.com/almighty/almighty-test-runner $GOPATH/src/github.com/almighty/almighty-test-runner
Note
|
Have a look how Go Version Manager can help you simplifying configuration and management of different versions of Go. |
Then run the build by simply executing make
from the root directory. This will perform following actions:
-
Clean artifacts from the previous build
-
Fetch or update dependencies using
glide
-
Compile and build binaries
-
Run tests
When in doubt just make help
.
In order to continuously run the tests whenever code change occur execute following command from the root directory of the project:
$ ginkgo watch -r
and keep it running in the terminal.
To perform static analysis of the code base we use gometalinter
tool. To install it run following commands:
$ go get -u github.com/alecthomas/gometalinter && gometalinter --install
In order to execute the check simply invoke make check
which effectively does:
gometalinter --vendor --deadline 10s ./...