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

RFC: default running options #543

Closed
DavertMik opened this issue Sep 7, 2013 · 4 comments

Comments

Projects
None yet
3 participants
@DavertMik
Copy link
Member

commented Sep 7, 2013

When you execute tests with run command you will likely specify a very long list of options: --no-exit, --group, --coverage, --xml, ... lots of them.

Writing them all in console is just boring. So the idea is to create a new section in the codeception.yml config:

options:
  group: [xx, yy, zz]
  coverage: on
  xml: on
  no-exit: on  

Probably that's not a good idea to use it in codeception.yml itself. Rather its better to have separate config, called codeception.ci.yml, and execute tests by passing this config as parameter:

codecept run -c codeception-ci.yml

So you create different execution profiles. You move out all common settings from codeception.yml into codeception.dist.yml, and use profiles with default options.

One issue I see here: options from config can't be unset. (or you have ideas how to do this).

@tvbeek

This comment has been minimized.

Copy link

commented Sep 8, 2013

That sounds like a create option. On this moment I use script files (sh/.bat) to run it with my default commands. But an option in codeception should be nice.

@tiger-seo

This comment has been minimized.

Copy link
Member

commented Sep 8, 2013

I don't like the idea, first of all I run tests using PhpStorm's Run configurations, for the second I'm sure that shell-script is enough for described use case, so there is no need to invent your own bike :)

@tiger-seo

This comment has been minimized.

Copy link
Member

commented Nov 21, 2013

Can we close this or what?

@DavertMik

This comment has been minimized.

Copy link
Member Author

commented Jan 25, 2014

I think https://github.com/Codegyre/Robo can now handle this.
Or maybe not now but in near future. At least that was nice implementation of idea described here

@DavertMik DavertMik closed this Jan 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.