Sha256: 8b33d96d5a48fb0b5b2e67202b501ce5a1cff71b331dbec275139ea18d332893

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

#!/bin/sh

# script/test: Run test suite for application. Optionally pass in a path to an
#              individual test file to run a single test.


set -e

cd "$(dirname "$0")/.."

[ -z "$DEBUG" ] || set -x

echo "==> Code quality…"
bundle exec rubocop

echo "==> Running tests…"

if [ -n "$1" ]; then
  # pass arguments to test call. This is useful for calling a single test.
  bundle exec rspec "$1"
else
  bundle exec rspec
fi

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glyptodont-0.3.0 script/test
glyptodont-0.2.0 script/test