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

Support for multiple PhpSpec suites #8

Open
pamil opened this issue Dec 31, 2018 · 2 comments
Open

Support for multiple PhpSpec suites #8

pamil opened this issue Dec 31, 2018 · 2 comments

Comments

@pamil
Copy link

pamil commented Dec 31, 2018

I've tried running this extension with Sylius, but the current solution with specDir seems to be suitable for in-house applications, which aren't divided into chunks and tested by one phpspec run.

It might be worth to use PhpSpec configuration, in our case it's this file: https://github.com/Sylius/Sylius/blob/master/phpspec.yml.dist

@akondas
Copy link
Contributor

akondas commented Dec 31, 2018

Should be possible 🤔 honestly I never used suites ... 😉

@akondas
Copy link
Contributor

akondas commented Dec 31, 2018

But this only confirms my thesis that creating such an extension will give me a lot of knowledge about the phpspec. Thanks for feedback @pamil.

pamil added a commit to Sylius/Sylius that referenced this issue Jan 2, 2019
This PR was merged into the 1.2 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.2
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | -
| License         | MIT

Tried to add `proget-hq/phpstan-phpspec` to our PHPStan but ended up reporting proget-hq/phpstan-phpspec#8 and covering our specs with PHPStan and some ignored errors.

This led me to find over ten specs which were not run due to class name/namespace/filename mismatches and some wrong `Argument::` calls in specs.


Commits
-------

1376307 Update PhpSpec to ^5.0
7913eeb Setup spec paths in autoload-dev in the main package
6b9357d Fix spec classnames / filenames mismatches
8994f2c Make PHPStan for specs passing
6cee10b Make PhpSpec passing after fixing PHPStan warnings
a007c90 Remove PHPStan extension for Symfony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants