While running PhpUnit tests some tests were not picked-up / auto-discovered.
@dawehner helped to discover the solution.
All test-class filenames must end with Test.php

Wrong:
/commerce/modules/product/tests/src/FunctionalJavascript/ProductAttributeJavascript.php
class AddToCartMultiAttribute extends

Good:
/commerce/modules/product/tests/src/FunctionalJavascript/ProductAttributeJavascriptTest.php
class AddToCartMultiAttributeTest extends

Comments

ndf created an issue. See original summary.

ndf’s picture

I checked all tests in Commerce-8.x-2.x

There is one hit:
- Only "ProductAttributeJavascript.php" must be refactored to "ProductAttributeJavascriptTest.php".

Did not touch ...TestBase.php nor ...TestTrait.php

ndf’s picture

Title: PhpUnit test file-names must have a Test() suffix for auto-discovery » PhpUnit test file-names/classes must have a Test() suffix for auto-discovery
ndf’s picture

Assigned: ndf » Unassigned
Status: Active » Needs review
ndf’s picture

Issue summary: View changes

  • bojanz committed 0d81403 on 8.x-2.x
    Issue #2754559: PhpUnit test file-names/classes must have a Test()...
bojanz’s picture

Status: Needs review » Fixed

Committed, thanks!

@ndf
Looks like drupal.org did not recognize your authorship. The GitHub commit has "ndf ", but drupal.org isn't recognizing that email.
Once you update your profile it should retroactively fix this. Otherwise we'll make up for it in a future PR.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.