Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-18917

Pipelines build failed even if Phpunit tests passed

    XMLWordPrintable

Details

    Description

      Time: 1.03 minutes, Memory: 36.00 MB
      
      OK (53 tests, 86 assertions)
      

      Exit code 0 is expected so build will be passed, but i get 139 status.

      Dockerfile based on php:7.1-fpm

      Here is my phpunit.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <phpunit backupGlobals="false"
               backupStaticAttributes="false"
               bootstrap="vendor/autoload.php"
               colors="true"
               convertErrorsToExceptions="true"
               convertNoticesToExceptions="true"
               convertWarningsToExceptions="true"
               processIsolation="false"
               stopOnFailure="false">
          <testsuites>
              <testsuite name="Unit">
                  <directory suffix="Test.php">./tests/Unit</directory>
              </testsuite>
      
              <testsuite name="Feature">
                  <directory suffix="Test.php">./tests/Feature</directory>
              </testsuite>
          </testsuites>
          <filter>
              <whitelist processUncoveredFilesFromWhitelist="true">
                  <directory suffix=".php">./app</directory>
              </whitelist>
          </filter>
          <php>
              <server name="APP_ENV" value="testing"/>
              <server name="BCRYPT_ROUNDS" value="4"/>
              <server name="CACHE_DRIVER" value="array"/>
              <server name="MAIL_DRIVER" value="array"/>
              <server name="QUEUE_CONNECTION" value="sync"/>
              <server name="SESSION_DRIVER" value="array"/>
              <env name="DB_CONNECTION" value="sqlite_memory"/>
          </php>
      </phpunit>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            f60b1d5641dd magora_oskin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: