Skip to main content
12 votes
Accepted

How to setup CI on Magento 2 extension using Bitbucket Pipeline?

Add the AUTH variable into the Pipelines Variable settings. Using Bitbucket, you can use this file below called bitbucket-pipelines.yml image: rafaelcgstz/magento2 pipelines: branches: ...
Rafael Corrêa Gomes's user avatar
8 votes
Accepted

Getting "Connection "default" is not defined" during integration test sandbox setup

This is issue #33802. A pull request linked there is reported to fix the issue.
mam08ixo's user avatar
  • 2,963
5 votes
Accepted

Magento 2 - PHPUnit using mocking or without mocking?

It looks to me that you're mixing up 2 types of testing here: unit testing and integration testing. Unit Testing With unit testing, you're testing a single unit. Now what the definition of a "Unit" ...
Giel Berkers's user avatar
  • 12.3k
2 votes
Accepted

How can I run unit tests / code sniffs for individual modules using a CI provider?

In your composer.json your are autoloading registration.php, which requires Magento\Framework\Component\ComponentRegistrar. So you have a dependency on the magento/framework package. If you add it to ...
Michiel's user avatar
  • 242
1 vote

Getting "Connection "default" is not defined" during integration test sandbox setup

This issue is appearing again in 2.4.6-p2 and is tracked in issue #37805. At the time of wrinting this answer adobe is already working on this issue but no PR has been linked yet. I have created a ...
Daniel's user avatar
  • 2,229
1 vote

Getting "Connection "default" is not defined" during integration test sandbox setup

Quick workaround: open your app/etc/env.php and duplicate the db.connection.default into a db.connection.db Something like this: <?php return [ # [..] 'db' => [ # [..] '...
Ivan Augusto's user avatar
1 vote
Accepted

How to test module in different Magento and PHP versions using CI?

First of all, you have to implement the Magento Coding Standard, then you can create a Travis config file to set the PHP version that you want to test your module and the Magento version and edition, ...
Rafael Corrêa Gomes's user avatar
1 vote

Should I run catalog:images:resize on each deployment or only incidentally?

Only incidentally. Generally, product images are cached while saving the product. However, the magento catalog:images:resize command enables you to resize all images for display on your ...
Raphael at Digital Pianism's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible