Fatal Error in GitLab CI PHPUnit test

Created on 21 May 2024, 7 months ago
Updated 4 June 2024, 7 months ago

Problem/Motivation

Tests ran successfully on my local environment and possibly in DrupalCI, but after setting up GitLab CI, I'm seeing failures.

PHP Fatal error: Trait "Drupal\Tests\paragraphs\FunctionalJavascript\ParagraphsTestBaseTrait" not found in /builds/project/paragraphs_in_rest/tests/src/Functional/ApiTest.php on line 13

This is blocking tests from running on other bug fixes, so I'm working on fixing it ASAP.

Steps to reproduce

Run tests in GitLab pipeline: PHPUnit fails.

Proposed resolution

Either with a condition like in https://www.drupal.org/project/devel/issues/3095684 β†’ or by adding a composer.json file to correctly figure test discovery.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gslexie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @gslexie
  • Pipeline finished with Canceled
    7 months ago
    Total: 596s
    #178459
  • Pipeline finished with Failed
    7 months ago
    Total: 216s
    #178464
  • Pipeline finished with Failed
    7 months ago
    Total: 44s
    #178469
  • Pipeline finished with Failed
    7 months ago
    Total: 44s
    #178471
  • Pipeline finished with Failed
    7 months ago
    Total: 37s
    #178472
  • Pipeline finished with Failed
    7 months ago
    Total: 48s
    #178508
  • Pipeline finished with Failed
    7 months ago
    Total: 42s
    #178514
  • Pipeline finished with Failed
    7 months ago
    Total: 36s
    #178526
  • Pipeline finished with Failed
    7 months ago
    Total: 75s
    #178535
  • Pipeline finished with Success
    7 months ago
    Total: 179s
    #178545
  • Pipeline finished with Success
    7 months ago
    Total: 205s
    #178553
  • Merge request !4Declare test dependencies in composer.json β†’ (Merged) created by gslexie
  • Status changed to Fixed 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States gslexie
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024