From 7380f5614bb262a57329c53714a148331efaa109 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 29 Jul 2025 20:13:11 +0900 Subject: test: Speed up test execution by removing test case dependencies --- tools/json2phpunit.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tools/json2phpunit.php') diff --git a/tools/json2phpunit.php b/tools/json2phpunit.php index 5188606..901683b 100644 --- a/tools/json2phpunit.php +++ b/tools/json2phpunit.php @@ -55,12 +55,10 @@ foreach ($wastJsonFiles as $wastJsonFile) { fwrite($fp, "declare(strict_types=1);\n\n"); fwrite($fp, "namespace Nsfisis\\Waddiwasi\\Tests\\SpecTestsuites\\Core;\n\n"); fwrite($fp, "use Nsfisis\\Waddiwasi\\Tests\\SpecTestsuites\\SpecTestsuiteBase;\n"); - fwrite($fp, "use PHPUnit\\Framework\\Attributes\\Depends;\n"); fwrite($fp, "use PHPUnit\\Framework\\Attributes\\DoesNotPerformAssertions;\n\n"); fwrite($fp, "final class $className extends SpecTestsuiteBase\n"); fwrite($fp, "{\n"); - $prevMethodName = null; foreach ($commands as $i => $command) { $type = $command['type']; $line = $command['line']; @@ -82,9 +80,6 @@ foreach ($wastJsonFiles as $wastJsonFile) { if ($commandTest === null) { fwrite($fp, " #[DoesNotPerformAssertions]\n"); } - if ($prevMethodName !== null) { - fwrite($fp, " #[Depends('$prevMethodName')]\n"); - } fwrite($fp, " public function $methodName(): void\n"); fwrite($fp, " {\n"); @@ -102,7 +97,6 @@ foreach ($wastJsonFiles as $wastJsonFile) { if ($i !== count($commands) - 1) { fwrite($fp, "\n"); } - $prevMethodName = $methodName; } fwrite($fp, "}\n"); -- cgit v1.2.3-70-g09d2