1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
psalm/src/Psalm/Internal/Provider
Bruce Weirdan 1cf5153700
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 10:32:07 -04:00
..
ReturnTypeProvider Fix bug I added 2020-08-07 15:13:03 -04:00
ClassLikeStorageCacheProvider.php
ClassLikeStorageProvider.php Clear out new_storage classlikes 2020-08-15 15:45:54 -04:00
FileProvider.php
FileReferenceCacheProvider.php Align paramter names 2020-08-09 23:19:59 -04:00
FileReferenceProvider.php Test parallelization (#4045) 2020-08-23 10:32:07 -04:00
FileStorageCacheProvider.php
FileStorageProvider.php
FunctionExistenceProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
FunctionParamsProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
FunctionReturnTypeProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
MethodExistenceProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
MethodParamsProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
MethodReturnTypeProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
MethodVisibilityProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
NodeDataProvider.php Improve fix to #2805 2020-03-14 01:09:12 -04:00
ParserCacheProvider.php Use scandir and glob flags to reduce their performance impact (#3499) 2020-05-30 17:02:35 -04:00
ProjectCacheProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
PropertyExistenceProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
PropertyTypeProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
PropertyVisibilityProvider.php Refactor type comparison 2020-07-21 19:40:35 -04:00
Providers.php Fix #3117 - invalidate all caches when composer lockfile changes 2020-04-12 11:41:37 -04:00
StatementsProvider.php Test parallelization (#4045) 2020-08-23 10:32:07 -04:00