distributeaid / toolbox

DistributeAid Toolbox
http://distributeaid.org
GNU Affero General Public License v3.0
3 stars 1 forks source link

Migrate integration tests to BDDs #40

Closed pedro-gutierrez closed 4 years ago

pedro-gutierrez commented 4 years ago

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

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.

pedro-gutierrez commented 4 years ago

Actually after some experimentation, I am not so sure about this. Can't see a huge improvement and might as well go back to plain ExUnit tests.