Is there a possibility to include a phpspec.yml file into another phpspec yml config file?

17 views
Skip to first unread message

Tobias Lückel

unread,
Nov 9, 2017, 6:38:31 AM11/9/17
to PHPSpec - Behavior Driven Design (BDD) for PHP
Hi

I would like to include a config file into another config file. Somethin like

phpspec.yml
suites:
  main
:
   
namespace: name\space
    psr4_prefix
: name\space
    src_path
: ./src/
    spec_prefix
: spec\
    spec_path
: .

phpspec.extension.yml
include: phpspec.yml

extensions:
    PhpSpec\NyanFormattersExtension\Extension: ~

This would have the advantage that i can config my phpspec in one place but also have the possibility to extend this configuration with extensions etc.

I would use it in a CI process to first run phpspec simple and in another step to run phpspec to collect coverage information.

Is it possible at the moment?

md

unread,
Nov 9, 2017, 6:43:15 AM11/9/17
to PHPSpec - Behavior Driven Design (BDD) for PHP
Hi Tobias

I don't think it is possible.

Marcello
Reply all
Reply to author
Forward
0 new messages