Sha256: 7d8261c51a7bfd3dde4c47005adb0a78b992c8d294a0035996826f9ca1b4edfb

Contents?: true

Size: 660 Bytes

Versions: 11

Compression:

Stored size: 660 Bytes

Contents

#!/bin/bash
set -e

runRspec(){
  local case=${1:-""}
  local bn=${case}

  if [ -n "${case}" ]; then
    bn="$(basename ${case} _spec.rb)/"
  fi
  bundle exec rspec \
    -f progress \
    -r yarjuf -f JUnit -o spec/junit-reports/${bn}ruby-agent-junit.xml \
    ${case}
}
specific_spec=$1

if [[ $specific_spec = '' ]]; then
  echo 'Running all specs, including integration'

  runRspec
  for i in $(find spec/integration -name '*_spec.rb')
  do
    echo "========================================"
    echo $i
    echo "========================================"
    runRspec "$i"
  done
else
  echo "Running only $specific_spec"

  runRspec $specific_spec
fi

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
elastic-apm-4.6.2 bin/run-tests
elastic-apm-4.6.1 bin/run-tests
elastic-apm-4.6.0 bin/run-tests
elastic-apm-4.5.1 bin/run-tests
elastic-apm-4.5.0 bin/run-tests
elastic-apm-4.4.0 bin/run-tests
elastic-apm-4.3.0 bin/run-tests
elastic-apm-4.2.0 bin/run-tests
elastic-apm-4.1.0 bin/run-tests
elastic-apm-4.0.0 bin/run-tests
elastic-apm-4.0.0.beta.2 bin/run-tests