이 가능해야한다 각 역할은 결국 자신의 단계 사전을 가질 수있게 될 것입니다 항상 설교가 가능하게 될 것입니다. "
현재 Behat 2에서는 기능을 분리하기 위해 다른 프로필을 사용할 수 있습니다. 당신의 behat.yml에서는 다음과 같이 할 수 :
#running login suite using Mink
login-suite:
paths:
features: features/login-suite
bootstrap: features/login-suite/bootstrap
extensions:
mink-extension.phar:
base_url: http://domain.org
formatter:
name: pretty, junit, html
parameters:
output_path: null, logs/login-suite/, logs/login-suite/out.html
#running logout suite using the WebApi
logout-suite:
paths:
features: features/logout-suite/
bootstrap: features/logout-suite/bootstrap/
formatter:
name: pretty, junit, html
parameters:
output_path: null, logs/login-suite/, logs/logout-suite/out.html
extensions:
Behat\WebApiExtension\Extension:
base_url: http://api.domain.org
FeatureContext.php 파일 로그인 스위트에 대한 및 로그 아웃 스위트 기능은 이제 분리된다.
문제는 지금 모든 테스트를 한 번에 실행할 수 없다는 것입니다. 컨텍스트를 사용하여 이렇게 할 수도 있습니다. http://docs.behat.org/guides/7.config.html#Context
분명히이 기능은 Behat 3의 일부가 될 것입니다. –