10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d064fd0 commit 66ba487Copy full SHA for 66ba487
script/run_rspec
@@ -13,8 +13,23 @@ function run_specs {
13
rspec_bin=script/rspec_with_simplecov
14
fi;
15
16
- echo "${PWD}/bin/rspec"
17
- $rspec_bin spec --backtrace --format progress --profile --format progress
+ if [ $PWD -ef $ROOT_DIR ]; then
+ echo "In root directory... running all specs..."
18
+
19
+ for dir in "$ROOT_DIR"/*/ ; do
20
+ dir=${dir%/}
21
22
+ if [ -d "$dir/spec" ]; then
23
+ echo "${PWD}/bin/rspec spec in ${dir}"
24
+ pushd $dir
25
+ $rspec_bin spec --backtrace --format progress --profile --format progress
26
+ popd
27
+ fi
28
+ done
29
+ else
30
+ echo "${PWD}/bin/rspec spec"
31
32
+ fi;
33
}
34
35
run_specs
0 commit comments