Sha256: 320e8782b549eea1a35a7176f89e1fe372c49225edf49b5e50fc0b22e5eb2c5f

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

#!/bin/bash -e

export RAILS_ENV="test"
export NODE_ENV="test"

# Run unit tests
if [[ -z "$1" ]] || [[ "$1" == "unit" ]]; then
  bundle exec rspec ./spec --tag type:feature
  bundle exec rspec ./spec --tag type:controller
fi;

# Run system tests
if [[ -z "$1" ]] || [[ "$1" == "system" ]]; then
  yarn build
  yarn build:css
  bundle exec rspec ./spec --tag type:system
fi;

# Run open-ended test paths
if [[ "$@" ]] && [[ "$1" != "unit" ]] && [[ "$1" != "system" ]]; then
  bundle exec rspec $@
fi;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
avo-1.19.1.pre.4 bin/test