Codeception / module-playwright

Playwright testing module in PHP
MIT License
5 stars 2 forks source link

Hangs #8

Closed ThomasLandauer closed 1 week ago

ThomasLandauer commented 1 month ago

In 3 tries, it hung 2 times, but in different steps:

First:

App\Tests.Acceptance Tests (1) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Modules: \App\Tests\Support\Helper\Acceptance, Playwright, Symfony, Doctrine, REST, PhpBrowser, Asserts, Cli
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  [RunProcess] Starting php bin/console doctrine:fixtures:load --no-interaction --env=test
  [RunProcess] Starting mailcatcher
FooCest: Try whatever

Second:

App\Tests.Acceptance Tests (1) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Modules: \App\Tests\Support\Helper\Acceptance, Playwright, Symfony, Doctrine, REST, PhpBrowser, Asserts, Cli
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  [RunProcess] Starting php bin/console doctrine:fixtures:load --no-interaction --env=test
  [RunProcess] Starting mailcatcher
FooCest: Try whatever
Signature: App\Tests\Acceptance\FooCest:tryWhatever
Test: tests/Acceptance/FooCest.php:tryWhatever
Scenario --

But the third attempt went through really fast :-)

Questions/remarks:

  1. How can I debug what's going on? => As there are now more things happening under the hood (starting Node etc.; communication with CodeceptJS), you should probably show more steps in the debug (-vvv) output.
  2. The thread node is keeping my CPU busy; so I rebooted (don't know which other threads were abandoned now).
  3. Ctrl+C does not quit. I had to close the entire terminal window, but that didn't stop node (see 2)
DavertMik commented 1 week ago

I removed auto-start of Playwright server, so hanging should not happen anymore