You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple "components" in src directory and would like to create separate suites for each of them. Below is expected behavior and two variants I thought I'd get there (none of them fully works).
The question is - what configuration should I use to achieve that?
Expected behavior
phpspec.yml
????? something
generate the spec file
~/projects/store$ bin/phpspec des ACME/Dory/Checkout/Foo
Specification for ACME\Dory\Checkout\Foo created in /var/www/store/tests/spec/Checkout/FooSpec.php.
~/projects/store$ bin/phpspec des ACME/Dory/Checkout/Foo
Specification for ACME\Dory\Checkout\Foo created in /var/www/store/tests/spec/Checkout/FooSpec.php.
~/projects/store$ bin/phpspec des ACME/Dory/Checkout/Foo
Specification for ACME\Dory\Checkout\Foo created in /var/www/store/tests/spec/Checkout/spec/FooSpec.php.
Situation
I have multiple "components" in
src
directory and would like to create separate suites for each of them. Below is expected behavior and two variants I thought I'd get there (none of them fully works).The question is - what configuration should I use to achieve that?
Expected behavior
phpspec.yml
????? something
generate the spec file
generated tests/spec/Checkout/FooSpec.php
generated src/Checkout/Foo.php
Variant 1 - No
spec_prefix
spec
at the beginning (obviously)phpspec.yml
generate the spec file
generated tests/spec/Checkout/FooSpec.php
generated src/Checkout/Foo.php
Variant 2 - Default
spec_prefix
spec
at the endphpspec.yml
generate the spec file
generated tests/spec/Checkout/spec/FooSpec.php
generated src/Checkout/Foo.php
The text was updated successfully, but these errors were encountered: