S
S
Steve2021-02-25 18:22:19
Continuous Integration
Steve, 2021-02-25 18:22:19

A simple question about testing on gitlab?

I run tests on my гитлабе; use

.gitlab-ci.yml
image: php:7.2

# Cache libraries in between jobs
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - vendor/

before_script:
  - apt-get update -yqq
  - apt-get install -yqq git libmcrypt-dev libpq-dev libcurl4-gnutls-dev libicu-dev libvpx-dev libjpeg-dev libpng-dev libxpm-dev zlib1g-dev libfreetype6-dev libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev unixodbc-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev
  # Install PHP extensions
  - docker-php-ext-install exif pdo_pgsql pgsql curl json intl gd xml zip bz2 opcache
  # Install & enable Xdebug for code coverage reports
  - pecl install xdebug
  - docker-php-ext-enable xdebug
  # Install and run Composer
  - curl --show-error --silent "https://getcomposer.org/installer" | php
  - php composer.phar install

UnitTest:
  script:
    - vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never
, docker.
Tests cover all controllers, etc. not even created yet, because in the project tests were written first of all the rest. So: when gitlab starts testing, it gives me a bunch of errors like "class not found" and finally stops working without even showing the test results: how many tests, how many successful and errors. It is clear that the error in case there is no class is obvious, but is it possible at least to have normal statistics?
how many tests in total, how many successes and errors

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question