FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(tests): Add docker-test.sh for running tests in a Docker container by hughsw · Pull Request #239 · bee-queue/bee-queue · GitHub

feat(tests): Add docker-test.sh for running tests in a Docker container - #239

Closed
hughsw wants to merge 4 commits into
bee-queue:masterfrom
hughsw:docker-test-in-one-script
Closed

feat(tests): Add docker-test.sh for running tests in a Docker container#239
hughsw wants to merge 4 commits into
bee-queue:masterfrom
hughsw:docker-test-in-one-script

Conversation

hughsw commented Apr 20, 2020
edited
Loading

Copy link
Copy Markdown
Collaborator

Use a single script, docker-test.sh to build an image and run a container to do testing.

This is a less intrusive, more focussed version of #234

$ ./docker-test.sh  --help

docker-test.sh -- Run standard bee-queue tests in a Docker container with a Redis server

Usage: docker-test.sh [command ...args]

The optional command and args specify what to run in the container (default: npm test).

You can use tools or run scripts from package.json, e.g.

  ./docker-test.sh  npx ava --serial --fail-fast --verbose --no-color --timeout 30000
  ./docker-test.sh  npm run coverage

If you want to work interactively in the container, run a shell, e.g.

  ./docker-test.sh  bash

Notes:
- The very first time this script is used it takes a while for Docker to
  download the base image and to populate its caches.
- You can ignore the Transparent Huge Pages warning from the Redis server.

hughsw requested a review from skeggse April 20, 2020 12:19

coveralls commented Apr 20, 2020
edited
Loading

Copy link
Copy Markdown

Coverage remained the same at 100.0% when pulling a8c9d0f on hughsw:docker-test-in-one-script into 3430506 on bee-queue:master.

Comment thread docker-test.sh Outdated
Comment thread docker-test.sh
compwright changed the title feat(testing): Add docker-test.sh for running tests in a Docker container feat(tests): Add docker-test.sh for running tests in a Docker container Nov 22, 2022

Copy link
Copy Markdown
Collaborator

Resubmitted as #554

compwright closed this Nov 23, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL