Is your feature request related to a problem? Please describe.
This is an enhancement to the way we write integration tests.
Describe the solution you'd like
Move all integration (graphql) tests to BDD style using cabbage. Feature files go to test/features and step implementations go to test/support/steps.
We should also write a guide on how to organise those tests.
Describe alternatives you've considered
The current approach which is based on plain ExUnit is fine, but a bit verbose, and tests become difficult to read. There is also a bit of code duplication and not much structure.
Is your feature request related to a problem? Please describe.
This is an enhancement to the way we write integration tests.
Describe the solution you'd like
Move all integration (graphql) tests to BDD style using cabbage. Feature files go to
test/features
and step implementations go totest/support/steps
.We should also write a guide on how to organise those tests.
Describe alternatives you've considered
The current approach which is based on plain ExUnit is fine, but a bit verbose, and tests become difficult to read. There is also a bit of code duplication and not much structure.
Additional context
We have our own fork of cabbage that implements backgrounds and also is compatible with Elixir 1.10: https://github.com/distributeaid/toolbox.