E2E backend testing with Ecto API
TALK LEVEL: BEGINNER / INTERMEDIATE / ADVANCED
Hound and Wallaby are great test tools. We get access to the Ecto sandbox out of the box, so the background for each test is easy to set up.
However, both are quite difficult to operate any anything other than a simple frontend, which is part of the Phoenix app itself.
What most people do not know is that Ecto supports Sandbox access via API endpoints, making it possible to use any test runner, such as Cypress or Testcafe, paired with any frontend of any complexity.
THIS TALK IN THREE WORDS
Elixir
Testing
Sandbox
OBJECTIVES
The topic is something that's well documented, but for some reason, little known to the community. It solves one of the biggest issue with e2e tests - preparing the data to support your test, without clashing with other tests.
TARGET AUDIENCE
Anyone who wants good test coverage in their project.