Good morning,
We want to configure a pipeline for one of our projects, we are occuring an issue related to Bitbucket's Pipeline.
On a given step, we want to perform tests:
- units tests are fine and all of them are good
- every test which run a HTTP request fails each time.
There is our step:
- step: &Tests
name: Build Prisma to perform tests
service:
- docker
cache:
- composer
- docker
script:
- eval $(cat secrets.def | sed 's/^/export /')
- pecl install xdebug
- docker-php-ext-enable xdebug
- export XDEBUG_MODE=coverage
- >-
curl -sSL https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - | sh -s \
zip
- cp .env.testing .env
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- export APP_URL="http://host.docker.internal:8000"
- php artisan key:generate
- php artisan migrate
- php artisan optimize && php artisan optimize:clear
- echo "memory_limit = 512M" > $PHP_INI_DIR/conf.d/php-memory-limits.ini
- php artisan test --coverage
artifacts:
- secrets.def
And this is the result:

We watched on host.docker.internal (it changes nothing), also increase the available memory, same result.
I hope there is someone to help us.
Thank you,
Alysson