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

Updates of namespaces and composer.json #8

Merged
merged 1 commit into from
Aug 18, 2014

Conversation

evangelion1204
Copy link
Contributor

  • updated used namespaces
  • moved example from test to example folder
  • introduced composer.example.json

"homepage": "https://github.com/qa-tools/behat-extension",
"license": "BSD-3-Clause",
"require": {
"php": ">=5.3.1",
"behat/mink-extension": "*",
"behat/mink-extension": "dev-master",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dev-master means always use what's in master branch. The *@dev on the other hand means use latest stable dev version or use stable version where composer.json minimum stability is set to stable.

So the *@dev is better. Better yet you can specify ~1.3@dev,~2.0@dev (the 1.3 would allow the Behat 2.x to be used and the 2.0 would allow Behat 3.x to be used, theoretically). This way we won't force people to use Behat 3.x if they don't want.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently we need to go for Behat 3.x, if we really need 2.x support we need to create a separate branch for it.

@aik099
Copy link
Member

aik099 commented Aug 16, 2014

introduced composer.example.json

Maybe composer.json.dst would be better (like PHPUnit style).

@evangelion1204
Copy link
Contributor Author

Maybe composer.json.dst would be better (like PHPUnit style).

With #9 everything would be moved to a separate project and we would have a clean setup. This example file is currently required to run the example.

@evangelion1204
Copy link
Contributor Author

Ok, corrected everything. Also moved the example composer file to the example dir.

@@ -25,7 +21,8 @@
},
"autoload-dev": {
"psr-0": {
"QATools\\behat": "tests/"
"tests\\QATools\\BehatExtension": "tests/",
"example": ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the stuff from example namespace be loaded in that example folder and it's composer.json.dst?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please proceed with a changes, that are needed here.

@aik099
Copy link
Member

aik099 commented Aug 17, 2014

Ok, corrected everything. Also moved the example composer file to the example dir.

I guess what you did forget to do is git push 😉

@evangelion1204
Copy link
Contributor Author

My fault, really did not push everything. I will just use localhost as url, this is probably better, cause people don't need to modifiy their hosts to get it running.

"mindplay/annotations": "@dev",
"behat/mink": "dev-master",
"behat/mink-selenium2-driver": "dev-master"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look on whole require statement.

I recommend putting as close to reality versions here as possible:

  • "qa-tools/qa-tools": "~1.0@dev",
  • "qa-tools/behat-extension": "~1.0@dev",
  • "mindplay/annotations": "~1.2@dev",
  • "behat/mink": "~1.5@dev",
  • "behat/mink-selenium2-driver": "~1.1@dev"

* updated used namespaces
* moved example from test to example folder
* introduced composer.example.json
@evangelion1204
Copy link
Contributor Author

Ok updated the dependencies for the example and removed old autoload namespace.

aik099 pushed a commit that referenced this pull request Aug 18, 2014
Updates of namespaces and composer.json
@aik099 aik099 merged commit 2e651b5 into qa-tools:master Aug 18, 2014
@aik099
Copy link
Member

aik099 commented Aug 18, 2014

Merged. Thanks, @evangelion1204 .

@evangelion1204 evangelion1204 deleted the 3_composer_adjustments branch August 18, 2014 20:58
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

Successfully merging this pull request may close these issues.

2 participants