@lonocloud/dctest

0.4.0 • Public • Published

dctest

Integration Testing in Docker Compose

npm docker

Quickstart

The intro examples demonstrate the basic syntax and features of dctest. They can be run with a fresh checkout, installed dependencies, and the sample Docker Compose file:

git checkout git@github.com:Viasat/dctest.git
npm install
docker-compose -p demo -f examples/docker-compose.yaml up -d

With our Docker Compose project running, we can run our tests against it, supplying the project name ("demo") and the tests we want to run:

./dctest demo examples/00-intro.yaml

See dctest --help for more CLI options, such as --continue-on-error. Guides and reference documentation are also available.

Install and Run

Via NPM as a dev dependency:

npm install --save-dev @lonocloud/dctest@0.3.1
./node_modules/.bin/dctest $USER /path/to/suite.yaml

Via Docker Hub:

docker pull lonocloud/dctest:0.3.1
docker run --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /path/to/suite.yaml:/tests/suite.yaml \
  lonocloud/dctest:0.3.1 $USER /tests/suite.yaml

Copyright & License

This software is copyright Viasat, Inc and is released under the terms of the Eclipse Public License version 2.0 (EPL.20). A copy of the license is located at in the LICENSE file at the top of the repository.

Readme

Keywords

none

Package Sidebar

Install

npm i @lonocloud/dctest

Weekly Downloads

48

Version

0.4.0

License

SEE LICENSE IN LICENSE

Unpacked Size

104 kB

Total Files

33

Last publish

Collaborators

  • kanaka
  • jonsmock