fresh-belgium-62598
02/24/2023, 12:25 PMfresh-belgium-62598
02/24/2023, 12:30 PMgit clone <https://github.com/spryker-shop/b2c-demo-marketplace.git> ./
git clone git@github.com:spryker/docker-sdk.git docker
docker/sdk boot deploy.dev.yml
docker/sdk console cache:class-resolver:build
docker/sdk up
fresh-belgium-62598
02/24/2023, 12:33 PMdocker/sdk cli -t -x
codecept run -c codeception.acceptance.yml
The result is:
ERRORS!
Tests: 42, Assertions: 22, Errors: 7, Failures: 7, Skipped: 4.
docker/sdk cli -t -x
codecept run -c codeception.functional.yml
The result is:
OK, but incomplete, skipped, or useless tests!
Tests: 154, Assertions: 298, Skipped: 16.
docker/sdk cli -t -x
codecept run -c codeception.api.yml
The result is:
No tests executed!
So this is an uncomfortable sitation for a developer to start with (broken tests).
Is there any trick I am missing?
Otherwise I hereby ask kindly the core developers to fix their tests...fresh-belgium-62598
02/24/2023, 12:38 PMdocker/sdk cli -t -x
codecept run -c tests/PyzTest/Yves/Availability
This one is broken:
[ConnectionException] Can't connect to WebDriver at http://0.0.0.0:4444/wd/hub. Make sure that ChromeDriver, GeckoDriver or Selenium Server is running.fresh-belgium-62598
02/24/2023, 12:41 PMdocker/sdk cli -t -x
codecept run -c tests/PyzTest/Yves/Customer
I am getting these errors multiple times:
[ConnectionException] Can't connect to WebDriver at http://0.0.0.0:4444/wd/hub. Make sure that ChromeDriver, GeckoDriver or Selenium Server is running.fresh-belgium-62598
02/24/2023, 12:43 PMdocker/sdk cli -t -x
codecept run -c tests/PyzTest/Yves/Newsletter
I am getting these errors multiple times:
[ConnectionException] Can't connect to WebDriver at http://0.0.0.0:4444/wd/hub. Make sure that ChromeDriver, GeckoDriver or Selenium Server is running.fresh-belgium-62598
02/24/2023, 12:45 PMdocker/sdk cli -t -x
codecept run -c tests/PyzTest/Zed/Availability
This one is broken:
Suite '' could not be foundfresh-belgium-62598
02/24/2023, 12:45 PMdocker/sdk cli -t -x
codecept run -c tests/PyzTest/Zed/CmsGui
I am getting these errors multiple times:
[ConnectionException] Can't connect to WebDriver at http://0.0.0.0:4444/wd/hub. Make sure that ChromeDriver, GeckoDriver or Selenium Server is running.fresh-belgium-62598
02/24/2023, 12:47 PMdocker/sdk cli -t -x
codecept run -c tests/PyzTest/Zed/NavigationGui
This is the error:
PHP Fatal error: Uncaught Error: Call to a member function closeConnections() on null in /data/vendor/propel/propel/src/Propel/Runtime/Propel.php:240
Stack trace:
#0 /data/vendor/spryker/propel/tests/SprykerTest/Shared/Propel/_support/Helper/ConnectionHelper.php(55): Propel\Runtime\Propel::closeConnections()
#1 /data/vendor/codeception/codeception/src/Codeception/Subscriber/Module.php(80): SprykerTest\Shared\Propel\Helper\ConnectionHelper->_after(Object(Codeception\Test\Cest))
#2 /data/vendor/symfony/event-dispatcher/EventDispatcher.php(230): Codeception\Subscriber\Module->after(Object(Codeception\Event\TestEvent), 'test.after', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#3 /data/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'test.after', Object(Codeception\Event\TestEvent))
#4 /data/vendor/codeception/codeception/src/Codeception/Test/Test.php(284): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Codeception\Event\TestEvent), 'test.after')
#5 /data/vendor/codeception/codeception/src/Codeception/Test/Test.php(230): Codeception\Test\Test->fire('test.after', Object(Codeception\Event\TestEvent))
#6 /data/vendor/codeception/codeception/src/Codeception/Suite.php(130): Codeception\Test\Test->realRun(Object(Codeception\ResultAggregator))
#7 /data/vendor/codeception/codeception/src/Codeception/SuiteManager.php(148): Codeception\Suite->run(Object(Codeception\ResultAggregator))
#8 /data/vendor/codeception/codeception/src/Codeception/Codecept.php(260): Codeception\SuiteManager->run(Object(Codeception\ResultAggregator))
#9 /data/vendor/codeception/codeception/src/Codeception/Codecept.php(216): Codeception\Codecept->runSuite(Array, 'Presentation', NULL)
#10 /data/vendor/codeception/codeception/src/Codeception/Command/Run.php(646): Codeception\Codecept->run('Presentation')#11 /data/vendor/codeception/codeception/src/Codeception/Command/Run.php(467): Codeception\Command\Run->runSuites(Array, Array)
#12 /data/vendor/symfony/console/Command/Command.php(298): Codeception\Command\Run->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /data/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /data/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(Codeception\Command\Run), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /data/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /data/vendor/codeception/codeception/src/Codeception/Application.php(112): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /data/vendor/codeception/codeception/app.php(45): Codeception\Application->run()
#18 /data/vendor/codeception/codeception/app.php(46): {closure}()
#19 /data/vendor/codeception/codeception/codecept(7): require('/data/vendor/co...')
#20 /data/vendor/bin/codecept(120): include('/data/vendor/co...')
#21 {main}
thrown in /data/vendor/propel/propel/src/Propel/Runtime/Propel.php on line 240fresh-belgium-62598
02/24/2023, 12:48 PMdocker/sdk cli -t -x
codecept run -c tests/PyzTest/Zed/ProductRelation
This one is broken:
[ConnectionException] Can't connect to WebDriver at http://0.0.0.0:4444/wd/hub. Make sure that ChromeDriver, GeckoDriver or Selenium Server is running.fresh-belgium-62598
02/24/2023, 12:50 PMdocker/sdk cli -t -x
codecept run -c tests/PyzTest/Zed/Tax
This is the error:
PHP Fatal error: Uncaught Error: Call to a member function closeConnections() on null in /data/vendor/propel/propel/src/Propel/Runtime/Propel.php:240
Stack trace:
#0 /data/vendor/spryker/propel/tests/SprykerTest/Shared/Propel/_support/Helper/ConnectionHelper.php(55): Propel\Runtime\Propel::closeConnections()
#1 /data/vendor/codeception/codeception/src/Codeception/Subscriber/Module.php(80): SprykerTest\Shared\Propel\Helper\ConnectionHelper->_after(Object(Codeception\Test\Cest))
#2 /data/vendor/symfony/event-dispatcher/EventDispatcher.php(230): Codeception\Subscriber\Module->after(Object(Codeception\Event\TestEvent), 'test.after', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#3 /data/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'test.after', Object(Codeception\Event\TestEvent))
#4 /data/vendor/codeception/codeception/src/Codeception/Test/Test.php(284): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Codeception\Event\TestEvent), 'test.after')
#5 /data/vendor/codeception/codeception/src/Codeception/Test/Test.php(230): Codeception\Test\Test->fire('test.after', Object(Codeception\Event\TestEvent))
#6 /data/vendor/codeception/codeception/src/Codeception/Suite.php(130): Codeception\Test\Test->realRun(Object(Codeception\ResultAggregator))
#7 /data/vendor/codeception/codeception/src/Codeception/SuiteManager.php(148): Codeception\Suite->run(Object(Codeception\ResultAggregator))
#8 /data/vendor/codeception/codeception/src/Codeception/Codecept.php(260): Codeception\SuiteManager->run(Object(Codeception\ResultAggregator))
#9 /data/vendor/codeception/codeception/src/Codeception/Codecept.php(216): Codeception\Codecept->runSuite(Array, 'Presentation', NULL)
#10 /data/vendor/codeception/codeception/src/Codeception/Command/Run.php(646): Codeception\Codecept->run('Presentation')
#11 /data/vendor/codeception/codeception/src/Codeception/Command/Run.php(467): Codeception\Command\Run->runSuites(Array, Array)
#12 /data/vendor/symfony/console/Command/Command.php(298): Codeception\Command\Run->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /data/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /data/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(Codeception\Command\Run), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /data/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /data/vendor/codeception/codeception/src/Codeception/Application.php(112): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /data/vendor/codeception/codeception/app.php(45): Codeception\Application->run()
#18 /data/vendor/codeception/codeception/app.php(46): {closure}()
#19 /data/vendor/codeception/codeception/codecept(7): require('/data/vendor/co...')
#20 /data/vendor/bin/codecept(120): include('/data/vendor/co...')
#21 {main}
thrown in /data/vendor/propel/propel/src/Propel/Runtime/Propel.php on line 240hallowed-dentist-19902
03/09/2023, 3:08 PMāā/data | Store: DE | Env: docker.dev | Debug: (X) | Testing: (X)
ā°ā$ codecept run -g MyModuleFacadeTest
hallowed-dentist-19902
03/09/2023, 3:12 PM/**
* Auto-generated group annotations
*
* @group PyzTest
* @group Zed
* @group CustomFields
* @group Business
* @group Facade
* @group MyModuleFacadeTest
hallowed-dentist-19902
03/09/2023, 3:12 PMhallowed-dentist-19902
03/09/2023, 4:11 PMcodecept run -c vendor/spryker/wishlist/tests/SprykerTest/Zed/Wishlist
It works, but only because of some configuration difference, putting Wishlist into PyzTest namespace and then re-configuring it creates issues too.hallowed-dentist-19902
03/16/2023, 1:16 PM- \SprykerTest\Shared\Customer\Helper\CustomerDataHelper
Lets you use have customer
which creates a customer for you to test, then cleans it up for you rather than having to invoke the SpyCustomer facade or model yourself.
public function haveCustomer(array $override = []): \Generated\Shared\Transfer\CustomerTransfer {
return $this->getScenario()->runStep(new \Codeception\Step\Action('haveCustomer', func_get_args()));
}
Example: vendor/spryker/wishlist/tests/SprykerTest/Zed/Wishlist/Business/WishlistFacadeTest.php
$this->customer = $this->tester->haveCustomer();
ancient-arm-53696
04/14/2023, 8:33 AMvendor/spryker/discount/tests/SprykerTest/Zed/Discount/Business/DiscountFacadeCalculateTest.php
.
I am asking this, because I try to persist discounts to the database like that, but actually test the CalculationFacade
. There is a point where the Discount Model vendor/spryker/discount/src/Spryker/Zed/Discount/Business/Calculator/Discount.php
reads active discounts from the database, but the previously inserted discounts can not be found. Also I can not find the previously inserted discounts in the database, I must be looking at the wrong place. What am I missing?aloof-doctor-18410
07/20/2023, 3:03 PM