From 173836bdbee730f33711ed5e1e81f374922655ca Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Thu, 27 Oct 2016 14:01:58 +0200 Subject: [PATCH] [Travis] Partition Behat with JS --- .../application/script/test-behat-with-javascript | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/etc/travis/suites/application/script/test-behat-with-javascript b/etc/travis/suites/application/script/test-behat-with-javascript index fdbc675d4b..86566ecfdb 100755 --- a/etc/travis/suites/application/script/test-behat-with-javascript +++ b/etc/travis/suites/application/script/test-behat-with-javascript @@ -29,10 +29,14 @@ run_behat() { local code=0 print_header "Testing (Behat - brand new, javascript scenarios; @javascript && ~@todo && ~@cli)" "Sylius" - run_command "bin/behat --strict --no-interaction -vvv -f progress -p cached --tags=\"@javascript && ~@todo && ~@cli\"" || code=$? - if [[ ${code} = 1 ]]; then - run_command "bin/behat --strict --no-interaction -vvv -f progress -p cached --tags=\"@javascript && ~@todo && ~@cli\" --rerun" ; code=$? - fi + + for path in features/* + do + run_command "bin/behat $path --no-interaction -vvv -f progress -p cached --tags=\"@javascript && ~@todo && ~@cli\"" || code=$? + if [[ ${code} = 1 ]]; then + run_command "bin/behat $path --no-interaction -vvv -f progress -p cached --tags=\"@javascript && ~@todo && ~@cli\" --rerun" ; code=$? + fi + done return ${code} }