Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Add config to use custom phpunit.humbug.xml (e.g for symfony project) #197

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tabbabi
Copy link

@tabbabi tabbabi commented Dec 27, 2016

{
    "source": {
        "directories": [
            "src"
        ],
        "excludes": [
            "vendor"
        ]
    },
    "chdir": "app",
    "configure": "app/humbug/phpunit.humbug.xml",
    "timeout": 30,
    "logs": {
        "text": "humbuglog.txt",
        "json": "humbuglog.json"
    }
}

Copy link
Member

@theofidry theofidry left a comment

Choose a reason for hiding this comment

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

While I think this is a nice feature, there is besides the comment two things to consider:

  • Ensure that this config file is overridable with an argument when invoking humbug
  • I'm not sure about the entry key if we add support for say phpSpec for example (as you could very well use both PHPUnit and phpSpec)

{
$container = m::mock('\Humbug\Container');
$container->shouldReceive([
'getSourceList' => $this->root,
Copy link
Member

Choose a reason for hiding this comment

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

can you remove the unnecessary whitespace between the arrows please?

]);
;
$adapter = new Phpunit;
$process = $adapter->getProcess(
Copy link
Member

Choose a reason for hiding this comment

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

I think this can be a one liner

@theofidry theofidry added this to the 1.0.0 milestone Apr 19, 2017
@padraic
Copy link
Collaborator

padraic commented Apr 22, 2017

Also needs to be documented. It's relatively simple, so I might look at it later over the weekend.

Copy link
Collaborator

@padraic padraic left a comment

Choose a reason for hiding this comment

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

Update to README required.

@tabbabi tabbabi force-pushed the add-humbug-config branch 3 times, most recently from 126c15d to 67be9e2 Compare August 4, 2017 14:58
@theofidry
Copy link
Member

@tabbabi could you add the missing doc? After that I think it will be ready to be merged :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants