Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wcms_tests
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
wcms_tests
Commits
f23d047e
Commit
f23d047e
authored
4 months ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-7160: add script to try running each file
parent
4bf17d7f
No related branches found
No related tags found
2 merge requests
!83
ISTWCMS-7160 Fix service content type in testAutomaticListBlocksSettings in...
,
!81
ISTWCMS-7160 Make existing Codeception tests pass
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
run_files.sh
+49
-0
49 additions, 0 deletions
run_files.sh
setup_codeception.sh
+1
-0
1 addition, 0 deletions
setup_codeception.sh
with
50 additions
and
0 deletions
run_files.sh
0 → 100755
+
49
−
0
View file @
f23d047e
rm
-rf
tests/_output
rm
-rf
tests/_data
# Ensure we are not using the recorder.
cp
tests/acceptance_norecorder.suite.yml tests/acceptance.suite.yml
while
getopts
'r'
OPTION
;
do
case
"
$OPTION
"
in
r
)
cp
tests/acceptance_recorder.suite.yml tests/acceptance.suite.yml
;;
s
)
stepper
=
1
;;
?
)
echo
"script usage: [-r]"
>
&2
exit
1
;;
esac
done
# Directory to iterate through
directory
=
"tests/acceptance"
files
=()
for
file
in
"
$directory
"
/
*
;
do
if
[[
-f
"
$file
"
]]
;
then
file
=
"
${
file
//tests\/acceptance\//
}
"
file
=
"
${
file
//\.php/
}
"
files+
=(
"
$file
"
)
fi
done
# Perform the tests using the groups
for
value
in
"
${
files
[@]
}
"
;
do
pgrep chrome | xargs
kill
-9
chromedriver
--port
=
9515
--url-base
=
/wd/hub &
echo
"**************************************"
echo
"Current Test:
$value
"
echo
"**************************************"
if
[[
$stepper
==
1
]]
;
then
php vendor/bin/codecept run acceptance
"
$value
"
--fail-fast
--steps
else
php vendor/bin/codecept run acceptance
"
$value
"
--fail-fast
fi
if
[[
$?
-ne
0
]]
;
then
break
fi
done
This diff is collapsed.
Click to expand it.
setup_codeception.sh
+
1
−
0
View file @
f23d047e
...
...
@@ -4,4 +4,5 @@ cp tests/codeception.yml .
cp
tests/index.php web
cp
tests/run_tests.sh
.
cp
tests/run_groups.sh
.
cp
tests/run_files.sh
.
sed
-i
's/self::COVERAGE_COOKIE,\s$value,\s$cookieParams/self::COVERAGE_COOKIE, $value/g'
/var/www/html/vendor/codeception/codeception/src/Codeception/Coverage/Subscriber/LocalServer.php
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment