adr/2020_03_03_feature_coverage_in_api.md
We want our API to cover all the functionalities that are currently implemented in the UI.
Behat allows us to run the same Gherkin scenarios within one or more context. Currently, most of our scenarios are
run within UI context (tagged with @ui). Adding @api tag to those allows to run the scenarios within API context.
@ui and @apiAPI Platform recommends to use PHPUnit in order to cover the functionalities with tests.
Chosen Using Behat for the feature coverage, because it's the only option, that meets all the decision drivers criteria.
We will gradually add @api tag to the scenarios currently tagged with @ui and then implement the API contexts.
As a consequence, we will have to create a testing tool to use it in Behat contexts.