Documentation: Run the Docker tests with -it.

* `-i` will ensure that the build can be cancelled with *Ctrl+C*.
  * `-t` tells Docker to run as a TTY, so the test frameworks know to
    output colours.
This commit is contained in:
Samir Talwar
2016-03-05 16:30:50 +00:00
parent 87c62f3903
commit dde4665646

View File

@@ -34,14 +34,14 @@ Mac users can add the following line to their `~/.bash_profile` file to set this
### Using Docker for tests
You can run the tests in the docker container guaranteeing a clean test environment.
You can run the tests in a Docker container to guarantee a clean test environment.
$ docker build -t sdkman-cli/testing .
$ docker run --rm sdkman-cli/testing
$ docker build --tag=sdkman-cli/testing .
$ docker run --rm -it sdkman-cli/testing
By running the following command, you don't need to wait for downloading Gradle wrapper and other dependencies. The test reports can be found under the local `build` directory.
$ docker run --rm -v $PWD:/usr/src/app -v $HOME/.gradle:/root/.gradle sdkman-cli/testing
$ docker run --rm -it -v $PWD:/usr/src/app -v $HOME/.gradle:/root/.gradle sdkman-cli/testing
## Running the Server Locally