From 243766f9984d69893089e7a331940572d9f72bc9 Mon Sep 17 00:00:00 2001 From: Massimiliano Mirra Date: Mon, 3 May 2021 14:32:14 +0100 Subject: [PATCH 1/3] fix invocation with docker --- docs/source/docker-usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/docker-usage.md b/docs/source/docker-usage.md index 41f24959eb..7318e566c6 100644 --- a/docs/source/docker-usage.md +++ b/docs/source/docker-usage.md @@ -32,7 +32,7 @@ This runs the `test/` directory from the bats-core repository inside the bats Do For test suites that are intended to run in isolation from the project (i.e. the tests do not depend on project files outside of the test directory), you can mount the test directory by itself and execute the tests like so: ```bash -$ docker run -it -v "$PWD/test:/test" bats/bats:latest /test +$ docker run -it -v "$PWD:/code" bats/bats:latest /code/test ``` ## Docker Gotchas From ecc2da001cab013ef264cd58d78a9ed3fc551b40 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Sun, 6 Jun 2021 14:04:33 +0200 Subject: [PATCH 2/3] docker: Add missing folder /code/ Without this, the example code for mapping your own tests into the container doesn't work. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index d2ef00f3d4..e6bb90bf87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ RUN apk add --no-cache parallel ncurses && \ RUN ln -s /opt/bats/bin/bats /usr/local/bin/bats COPY . /opt/bats/ +RUN mkdir -p /code WORKDIR /code/ ENTRYPOINT ["/tini", "--", "bash", "bats"] From b40f10a39f7faecdec7bd7dc512d37e69b1af770 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Sun, 6 Jun 2021 14:12:38 +0200 Subject: [PATCH 3/3] Add changelog entries for #447, #445, #440 --- docs/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index cfdf89469a..fe0693b623 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -20,6 +20,8 @@ The format is based on [Keep a Changelog][kac] and this project adheres to #### Documentation * added tutorial for new users (#397) +* updated copyright year (#445) +* fixed example invocation of docker container (#440) ### Fixed @@ -32,6 +34,8 @@ The format is based on [Keep a Changelog][kac] and this project adheres to (#434, #433) * fix YAML blocks in TAP13 formatter using `...` instead of `---` to start a block (#442) +* fixed some typos in comments (#447) +* ensure `/code` exists in docker container, to make examples work again (#440) ## [1.3.0] - 2021-03-08