-
Notifications
You must be signed in to change notification settings - Fork 6
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
Readme updates for BehatSpec and extensions + merge phpspec2-support branch history to master #35
base: master
Are you sure you want to change the base?
Conversation
This PR would also make sure I also wanted to add "Copyright / License" information to the README.md of the packages, but decided to keep my cleanup / restructure to what I currently have to not make too many changes in one PR. Let me know what you think, you can check how the new README.md look at:
|
README.md
Outdated
RMiller\BehatSpec\Extension\BehatSpecExtension\BehatExtension: | ||
path: bin/phpspec #default value is bin/phpspec | ||
config: path/to/phpspec.yml #optional | ||
RMiller\BehatSpec\Extension\ErrorExtension\ErrorExtension: ~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be necessary RMiller\BehatSpec\Extension\BehatSpecExtension\BehatExtension
registers the other two extensions and passes that config to them.
README.md
Outdated
|
||
```yaml | ||
# phpspec.yml | ||
RMiller\BehatSpec\Extension\PhpSpecRunExtension\PhpSpecRunExtension: ~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As before, RMiller\BehatSpec\Extension\BehatSpecExtension\PhpSpecExtension should register the other two extension automatically.
Thanks for catching this. I've updated it accordingly. I am not sure if |
I'm not sure off the top of my head about teh rerunner config. I think there were some changes to the way phpspec's config worked at some point. I'll double check and open a separate PR. |
In phpspec3 they changed the way you should write the configuration. The configuration should now be under extension's namespace instead, like this: extensions:
RMiller\BehatSpec\Extension\BehatSpecExtension\PhpSpecExtension:
path: vendor/bin/phpspec
commands: [describe, exemplify, your_own_fancy_command]
config: path/to/phpspec.yml #optional I've checked in the code and I see that the extension itself still relies on checking for defined I agree this has to be sorted in a separate PR as this one should only be README / docs cleanup with no functional changes. |
…est version by default
…eanup specific version + minor word cleanup
…e enabled automatically
@richardmiller I've got some time and tested the current
I believe this one is safe to be merged now as it provides correct / updated information for main Otherwise, I had to rebase this against master due to conflict in |
This PR does some basic readme updates / cleanup according to updated subtreesplit structure. I believe this will be a small improvement and will clean up some minor inconsistencies in the documentation of the extensions.
Main updates:
README.md
ofBehatSpec
package so it would enable all of the extensions. If user installsBehatSpec
then all of the extensions are provided by the same package, thus the configuration now shows how to configure all bundle of extensions.0.5
isn't necessary as you would always need to update the documentation. The correct version can be figured out by the composer).README.md
for the extensions to include the updated configurations for PhpSpec3 as the format of defining extensions was changed.phpspec2-support
branch which has old instructions to set things up.BehatSpec
to the top of the page so people know about standalone extensions.README.md
. All the structure and content remained the same with some minor adjustments.README.md
for all the extensions for standalone configuration to match latestbehat
/phpspec
versions. Also theyaml
confing examples used different kinds of indentation, so I standardized this to 4 space indentation so examples are consistent.Mentioned "Similar Extensions" in
README.mdof all extensions. There is also awlays a link to
BehatSpecpackage. This should make it easy for users of standalone extensions to find other extensions and main
BehatSpec` package.stable
version of documentation instead of old3.0
.Merging this should close #31