Commit a4d71986 authored by Mathieu Giraud's avatar Mathieu Giraud

tests/Makefile, tests/launch_functional_tests: specify in command line where to take the tests from

See #2712.
parent 7d722503
......@@ -7,7 +7,7 @@ headless:
HEADLESS=1 $(MAKE) functional
functional: ../../doc/analysis-example1.vidjil
sh launch_functional_tests
sh launch_functional_tests "functional/test_*rb"
functional-rbx: ../../doc/analysis-example1.vidjil
LIVE_SERVER=http://app.vidjil.org/browser/ ruby test_browser.rb
......
# sh launch_functional_tests "functional/test_*rb"
FUNCTIONAL_TESTS=$1
rename_reports_in() {
dir="$1"
......@@ -19,7 +22,7 @@ if [ -z "$FUNCTIONAL_CLIENT_BROWSER_PATH" ]; then
FUNCTIONAL_CLIENT_BROWSER_PATH="."
fi
for browser in $FUNCTIONAL_CLIENT_BROWSER_PATH; do
for file in functional/test_*rb; do
for file in $FUNCTIONAL_TESTS; do
if [ ${#browser} -gt 1 ]; then
export WATIR_BROWSER_PATH="$browser"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment