Skip to content

Skipped test when using IntegrationTestCase with no legacy tests #4635

Description

@iquito

When doing Twig tests extending Twig\Test\IntegrationTestCase there is a skipped test if no legacy tests are defined:

There was 1 skipped test:

1) MyTests\IntegrationTest::testLegacyIntegration with data set #0 ('not', '-', '', array(), '', array())
no tests to run

This is coming from testLegacyIntegration in IntegrationTestCase, and specifically the beginning of doIntegrationTests:

if (!$outputs) {
    $this->markTestSkipped('no tests to run');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions