Skip to content

Conversation

@compwright
Copy link
Collaborator

Resubmitting #239 from @hughsw to fix CI issues:

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.

@compwright compwright force-pushed the docker-test-in-one-script branch from 908e96d to 8550cab Compare November 23, 2022 02:00
@compwright compwright merged commit 1932b39 into bee-queue:master Nov 23, 2022
beequeueci pushed a commit that referenced this pull request Nov 28, 2022
## [1.5.0](v1.4.3...v1.5.0) (2022-11-28)

### Features

* **tests:** add docker-test.sh for running tests in a Docker container ([#554](#554)) ([1932b39](1932b39))

### Bug Fixes

* **types:** add types for saveAll() ([#553](#553)) ([f909e2a](f909e2a)), closes [#318](#318)
@beequeueci
Copy link
Collaborator

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants