tolerant-php-parser/phpunit.xml

49 строки
1.4 KiB
XML

<phpunit bootstrap="src/bootstrap.php">
<testsuites>
<testsuite name="invariants">
<!--
Tests that token/tree production is "structurally" sound.
* INPUT: All PHP files in `tests/cases/**/`
* OUTPUT: TODO - output failing tests
-->
<file>tests/LexerInvariantsTest.php</file>
<file>tests/ParserInvariantsTest.php</file>
</testsuite>
<testsuite name="grammar">
<!--
Tests that we are properly implementing the grammar.
* INPUT: All files in `tests/cases/**/`
* OUTPUT: TODO - output failing tests
-->
<file>tests/LexicalGrammarTest.php</file>
<file>tests/ParserGrammarTest.php</file>
</testsuite>
<testsuite name="validation">
<!--
Validates against real-world scenarios.
* INPUT: All files in `validation/frameworks/<framework-name>/*`
* OUTPUT: Failing tests are output to `tests/output/<framework-name>`
-->
<file>tests/ParserFrameworkValidationTests.php</file>
</testsuite>
<testsuite name="api">
<file>tests/NodeApiTest.php</file>
</testsuite>
<testsuite name="performance">
<!-- TODO: Validates that there are no performance regressions. -->
</testsuite>
</testsuites>
<filter>
<!-- Code coverage whitelist. -->
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">/src/Node</directory>
<file>/src/Parser.php</file>
<file>/src/PhpTokenizer.php</file>
</whitelist>
</filter>
</phpunit>