Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefix attribute for directory node missing from phpunit.xml XSD #3218

Closed
adampraszywka opened this issue Jul 19, 2018 · 0 comments · Fixed by elecena/nano#2
Closed

prefix attribute for directory node missing from phpunit.xml XSD #3218

adampraszywka opened this issue Jul 19, 2018 · 0 comments · Fixed by elecena/nano#2
Labels
type/bug Something is broken

Comments

@adampraszywka
Copy link

Q A
PHPUnit version 7.2.7
PHP version 7.2.6
Installation Method Composer

After updating PHPUnit to version 7.2 every test run produces warning about invalid configuration file.

Warning - The configuration file did not pass validation!
  The following problems have been detected:

  Line 18:
  - Element 'directory', attribute 'prefix': The attribute 'prefix' is not allowed.

Testsuites configuration:

   <testsuites>
        <testsuite name="Unit">
            <directory prefix="U">tests</directory>
        </testsuite>
        <testsuite name="Integration">
            <directory prefix="I">tests</directory>
        </testsuite>
        <testsuite name="DB">
            <directory prefix="DB">tests</directory>
        </testsuite>
        <testsuite name="Functional">
            <directory prefix="F">tests</directory>
        </testsuite>
        <testsuite name="SQLTest">
            <directory prefix="SQL">tests</directory>
        </testsuite>
    </testsuites>

I use prefix attribute to run TestCase files with specified prefix.

I guess it is connected with configuration validation added in version 7.2 #3048
Prefix attribute doesn't exist in XSD file.
Does this mean that we I use deprecated or forgotten function ?
Is there any way to achieve the same behavior using different configuration options ?

@sebastianbergmann sebastianbergmann changed the title Configuration file validation - prefix attribute prefix attribute for directory node missing from phpunit.xml XSD Jul 19, 2018
@sebastianbergmann sebastianbergmann added the type/bug Something is broken label Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants