Skip to content

Commit 9b46595

Browse files
committed
Dedicated script to run ERB unit tests
1 parent 4a8db84 commit 9b46595

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

docs/running_tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Install the Gem dependencies.
149149

150150
Run the ERB unit tests.
151151
```
152-
(cd src && bundle exec rspec ../spec)
152+
scripts/test-unit-erb
153153
```
154154

155155
### Acceptance Tests (BATs)

scripts/test-brats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1414
# BOSH_BINARY_PATH
1515

1616

17-
cd src/go
17+
cd "${script_dir}/../src/go" || exit 1
1818
export GOPATH=$(pwd)
1919
export PATH="${GOPATH}/bin":$PATH
2020

21-
cd src/github.com/cloudfoundry/bosh-release-acceptance-tests
21+
cd src/github.com/cloudfoundry/bosh-release-acceptance-tests || exit 1
2222

2323
if [[ -n "${FOCUS_SPEC+x}" ]];then
2424
go run github.com/onsi/ginkgo/ginkgo -r -v -race -randomizeSuites -randomizeAllSpecs -focus="${FOCUS_SPEC}" -nodes 5 brats

scripts/test-unit-erb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6+
7+
cd "${script_dir}/../src" || exit 1
8+
9+
bundle exec rspec ../spec

0 commit comments

Comments
 (0)