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 faebbea commit 75615deCopy full SHA for 75615de
plugins/hwp-previews/bin/run-codeception.sh
@@ -73,9 +73,20 @@ run_tests() {
73
wp maintenance-mode deactivate --allow-root
74
fi
75
76
+
77
# Suites is the comma separated list of suites/tests to run.
78
echo "Running Test Suite $suites"
79
cd "$PROJECT_DIR"
80
81
+ # IMPORTANT: Build Codeception classes before running tests
82
+ echo "Building Codeception test classes"
83
+ vendor/bin/codecept build -c codeception.dist.yml
84
85
+ if [ $? -ne 0 ]; then
86
+ echo "Error: Codeception build failed"
87
+ exit 1
88
+ fi
89
90
XDEBUG_MODE=coverage vendor/bin/codecept run -c codeception.dist.yml ${suites} ${coverage:-} ${debug:-} --no-exit
91
if [ $? -ne 0 ]; then
92
echo "Error: Codeception tests failed with exit code $?"
0 commit comments