imbo / behat-api-extension

API extension for Behat, used to ease testing of JSON-based APIs
MIT License
109 stars 42 forks source link

override friendly #38

Closed rflipo-dev closed 7 years ago

rflipo-dev commented 7 years ago

1 - protected methods - nice to have (if possible), so we can use them when extending the context. 2 - removing try/catch :

When i do something not allowed
Then the response code is 403

because of the try/catch, test pass and fail at the same time (using Outline Scenario)

Examples: | role | | "candidate" | => green Client error:...(GuzzleHttp\Exception\ClientException) => red

rflipo-dev commented 7 years ago

i'll try to fix that tomorrow !

christeredvartsen commented 7 years ago

I'm working on a 2.0 branch that will fix this. I know, 2.0 already?! Seems I was a bit eager to release 1.0...

I will try to finish the details on 2.0 today or tomorrow and create a PR that we can use for discussions before finalizing it. Closing this for now.