Skip to content

Commit

Permalink
docs: Update local docker test usage
Browse files Browse the repository at this point in the history
We now have a convenient target 'test-with-database'

Also add docs/.gitignore so files created with

    asciidoctor -b html docs/Contributing.asciidoc

for example can be ignored.
  • Loading branch information
perlpunk committed May 8, 2020
1 parent 90ba890 commit 20dbe8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
4 changes: 2 additions & 2 deletions docs/Contributing.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,13 @@ docker pull registry.opensuse.org/devel/openqa/ci/containers/base:latest

```
.circleci/build_local_docker.sh # will create image based on content of dependnencies.txt and autoinst
docker run -it --rm -v $(pwd):/opt/testing_area localtest bash -c 'eval "$(t/test_postgresql | grep TEST_PG=)" && PERL5LIB=lib prove -v t/ui/25*'
docker run -it --rm -v $(pwd):/opt/testing_area localtest bash -c 'make test TESTS=t/ui/25*'
```

Alternatively, start container and execute commands in it, then
```
docker run --rm --name t1 -v $(pwd):/opt/testing_area localtest tail -f /dev/null & sleep 1
docker exec -it t1 bash -c 'eval "$(t/test_postgresql | grep TEST_PG=)" && PERL5LIB=lib prove -v t/ui/25-developer_mode.t'
docker exec -it t1 bash -c 'make test TESTS=t/ui/25-developer_mode.t'
docker stop -t 0 t1
```

Expand Down

0 comments on commit 20dbe8c

Please sign in to comment.