Preservar diagnostico mais recente dos programadores e isolar fixtures unitarias

This commit is contained in:
2026-10-20 15:07:54 +02:00
parent 5be831ac44
commit 9d148ca241
2 changed files with 78 additions and 6 deletions
+4 -1
View File
@@ -202,7 +202,10 @@ class Delivery:
self.run(['npm','run','build'],cwd=release,env=env)
self.run(['npm','run','types:check'],cwd=release,env=env)
self.run([self.c['php'],'tools/portal-diagnostics-deployment-guard.php'],cwd=release,env=env)
self.run([self.c['php'],'vendor/bin/phpunit','--configuration=phpunit.xml','--testsuite','Unit','--do-not-cache-result'],cwd=release,env=env)
# Unit fixtures mock DB/mail and select their own feature settings.
# Do not inject the destination's enabled-module flags into those mocks.
unit_env={k:v for k,v in env.items() if not k.startswith(('PORTAL_','INVESTMOZ_'))}
self.run([self.c['php'],'vendor/bin/phpunit','--configuration=phpunit.xml','--testsuite','Unit','--do-not-cache-result'],cwd=release,env=unit_env)
tests=sorted((release/'tests/frontend').glob('*.test.mjs'))
self.run(['node','--test',*tests],cwd=release,env=env)
# Final production vendor from the same lock, before linking any real configuration.