From 349ce7054ac8caccdc3d370365461931ff7a7b96 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 27 Jun 2021 14:51:01 +0200 Subject: Clean tests env before running tests Since we're using our own database tables, these are not cleaned by the default WP_PHPUnit setup. To ensure that we start on a clean slate when running the tests, clean the env before the tests are run. --- run-tests-windoze.bat | 1 + 1 file changed, 1 insertion(+) (limited to 'run-tests-windoze.bat') diff --git a/run-tests-windoze.bat b/run-tests-windoze.bat index 107f943..8654d40 100644 --- a/run-tests-windoze.bat +++ b/run-tests-windoze.bat @@ -5,4 +5,5 @@ REM SPDX-FileCopyrightText: 2021 Harald Eilertsen REM REM SPDX-License-Identifier: CC0-1.0 +npm run wp-env clean npm run wp-env run phpunit "phpunit -c /var/www/html/wp-content/plugins/giglogadmin/phpunit.xml" -- cgit v1.2.3