mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-06-08 15:58:07 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user