Skip to content

Commit faebbea

Browse files
committed
Fixes for tests
1 parent 96881aa commit faebbea

File tree

10 files changed

+13
-7
lines changed

10 files changed

+13
-7
lines changed

plugins/hwp-previews/bin/run-codeception.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ run_tests() {
7676
# Suites is the comma separated list of suites/tests to run.
7777
echo "Running Test Suite $suites"
7878
cd "$PROJECT_DIR"
79-
XDEBUG_MODE=coverage vendor/bin/codecept run -c codeception.dist.yml ${suites} ${coverage:-} ${debug:-} --no-exit
79+
XDEBUG_MODE=coverage vendor/bin/codecept run -c codeception.dist.yml ${suites} ${coverage:-} ${debug:-} --no-exit
80+
if [ $? -ne 0 ]; then
81+
echo "Error: Codeception tests failed with exit code $?"
82+
exit 1
83+
fi
8084
}
8185

8286
##
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dump.sql

plugins/hwp-previews/tests/_data/.gitkeep

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php //phpcs:ignoreFile

plugins/hwp-previews/tests/_envs/.gitkeep

Whitespace-only changes.

plugins/hwp-previews/tests/_output/.gitkeep

Whitespace-only changes.

plugins/hwp-previews/tests/_support/.gitkeep

Whitespace-only changes.

plugins/hwp-previews/tests/acceptance.suite.dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ modules:
1919
loadOnly: true
2020
plugins:
2121
- wp-graphql/wp-graphql.php
22-
- wp-graphql-headless-webhooks/wp-graphql-headless-webhooks.php
22+
- hwp-previews/hwp-previews.php
2323
activatePlugins:
2424
- wp-graphql/wp-graphql.php
25-
- wp-graphql-headless-webhooks/wp-graphql-headless-webhooks.php
25+
- hwp-previews/hwp-previews.php

plugins/hwp-previews/tests/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
/**
33
* This is global bootstrap for autoloading.
44
*
5-
* @package Tests\WPGraphQL\Webhooks
6-
*/
5+
* @package Tests\HWP\Previews
6+
*/

plugins/hwp-previews/tests/functional.suite.dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ modules:
1616
loadOnly: true
1717
plugins:
1818
- wp-graphql/wp-graphql.php
19-
- wp-graphql-headless-webhooks/wp-graphql-headless-webhooks.php
19+
- hwp-previews/hwp-previews.php
2020
activatePlugins:
2121
- wp-graphql/wp-graphql.php
22-
- wp-graphql-headless-webhooks/wp-graphql-headless-webhooks.php
22+
- hwp-previews/hwp-previews.php

0 commit comments

Comments
 (0)