1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00
psalm/phpunit.xml.dist

52 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2019-06-16 01:41:16 +02:00
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="false"
beStrictAboutTodoAnnotatedTests="true"
colors="true"
2019-06-15 15:04:52 +02:00
verbose="true"
Test parallelization (#4045) * Run tests in random order Being able to run tests in any order is a pre-requisite for being able to run them in parallel. * Reset type coverage between tests, fix affected tests * Reset parser and lexer between test runs and on php version change Previously lexer was reset, but parser kept the reference to the old one, and reference to the parser was kept by StatementsProvider. This resulted in order-dependent tests - if the parser was first initialized with phpVersion set to 7.4 then arrow functions worked fine, but were failing when the parser was initially constructed with settings for 7.3 This can be demonstrated on current master by upgrading to nikic/php-parser:4.9 and running: ``` vendor/bin/phpunit --no-coverage --filter="inferredArgArrowFunction" tests/ClosureTest.php ``` Now all tests using PHP 7.4 features must set the PHP version accordingly. * Marked more tests using 7.4 syntax * Reset newline-between-annotation flag between tests * Resolve real paths before passing them to checkPaths When checkPaths is called from psalm.php the paths are resolved, so we just mimicking SUT behaviour here. * Restore newline-between-annotations in DocCommentTest * Tweak Appveyor caches * Tweak TravisCI caches * Tweak CircleCI caches * Run tests in parallel Use `vendor/bin/paratest` instead of `vendor/bin/phpunit` * Use default paratest runner on Windows WrapperRunner is not supported on Windows. * TRAVIS_TAG could be empty * Restore appveyor conditional caching
2020-08-23 16:32:07 +02:00
executionOrder="random"
2019-06-15 15:04:52 +02:00
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix=".php">src/Psalm/Issue/</directory>
<directory suffix=".php">src/Psalm/Internal/Stubs/</directory>
<directory suffix=".php">src/Psalm/Internal/LanguageServer/</directory>
<directory suffix=".php">src/Psalm/Internal/ExecutionEnvironment/</directory>
<directory suffix=".php">src/Psalm/SourceControl/</directory>
<file>src/command_functions.php</file>
<file>src/psalm.php</file>
<file>src/psalm-language-server.php</file>
<file>src/psalter.php</file>
<file>src/psalm_plugin.php</file>
<file>src/psalm-refactor.php</file>
<file>src/Psalm/Plugin/Shepherd.php</file>
<file>src/Psalm/Internal/CallMap.php</file>
<file>src/Psalm/Internal/Fork/Pool.php</file>
<file>src/Psalm/Internal/Fork/Restarter.php</file>
<file>src/Psalm/Internal/PropertyMap.php</file>
<file>src/Psalm/Internal/Provider/ClassLikeStorageCacheProvider.php</file>
<file>src/Psalm/Internal/Provider/FileReferenceCacheProvider.php</file>
<file>src/Psalm/Internal/Provider/FileStorageCacheProvider.php</file>
<file>src/Psalm/Internal/Provider/ParserCacheProvider.php</file>
</exclude>
<report>
<!-- <clover outputFile="build/logs/clover.xml"/> -->
<!-- <html outputDirectory="build/logs/phpunit-html/"/> -->
</report>
</coverage>
<testsuites>
<testsuite name="psalm">
<directory>tests</directory>
</testsuite>
</testsuites>
2017-12-14 07:10:20 +01:00
</phpunit>