gladnik / rt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RT

RT is a lightweight autotests runtime using Docker to isolate test cases.

Test Launch

  1. Build container with Maven:
$ pushd runner
$ ./build-container.sh maven
$ popd
  1. Create directory to store test results:
$ mkdir ~/test-results
  1. Start RT:
$ ./rt -conf config/test-config.json -data-dir ~/test-results
  1. Launch tests using predefined JSON:
$ curl -vvv --data '@api/test-launch.json' http://localhost:8080/launch

Building

  1. Install Golang
  2. Setup $GOPATH properly
  3. Install govendor:
$ go get -u github.com/kardianos/govendor
  1. Get source:
$ go get -d github.com/aerokube/rt
  1. Go to project directory:
$ cd $GOPATH/src/github.com/aerokube/rt
  1. Checkout dependencies:
$ govendor sync
  1. Build source:
$ go build
  1. Run Selenoid:
$ ./rt --help
  1. To build Docker container type:
$ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build
$ docker build -t rt:latest .

About

License:Apache License 2.0


Languages

Language:Go 98.1%Language:Shell 1.9%